×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Hide some fields

Hide some fields 16 years 3 months ago #1000

  • m0nb0f
  • m0nb0f's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 31
  • Thank you received: 0
Hi,
I hide some fields like the backEnd let me do.
So, I would hide the "title" field too, so I modify the HTML file.
But, the comment system don't work :(
Title is it a required field to JoomlaCOmment work ?
How can I do to hide it ?
Thanks

Hide some fields 16 years 2 months ago #1006

  • Ajay Lulia
  • Ajay Lulia's Avatar
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 32
  • Thank you received: 0
Hi,

The quick way is to make the field as hidden field and assign some default value to it.

Hide some fields 16 years 2 months ago #1008

  • m0nb0f
  • m0nb0f's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 31
  • Thank you received: 0
Hi,
Ok, I make it hiden with comments in HTML file but how can I do to assign a default value ?
Could you post me the code please ? :blush:
Thanks

Hide some fields 16 years 2 months ago #1009

  • Ajay Lulia
  • Ajay Lulia's Avatar
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 32
  • Thank you received: 0
Hi,

put any value you feel like, the check is only that title cannot be null.
you can have following:

<input name='ttitle' type='text' value="Not Needed"/>

Regards,
Ajay Lulia.

Hide some fields 16 years 2 months ago #1010

  • m0nb0f
  • m0nb0f's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 31
  • Thank you received: 0
Hi,
I would like to reinstall all the component (remove totally first)
It's ok unless that the directory
/media/myjosctemplates/
isn't delete automatically and I can't do it by FTP too :(
Could you help me to fix it ?
Regards

Hide some fields 16 years 2 months ago #1085

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
if you can not delete it through an FTP manager, please ask you support to do that for you.

Hide some fields 16 years 2 months ago #1100

  • m0nb0f
  • m0nb0f's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 31
  • Thank you received: 0
Hi,
Thanks, I finally could delete it with a PHP file ( more informations )
Thanks ;)

Hide some fields 16 years 1 month ago #1344

  • Ben T.
  • Ben T.'s Avatar
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 21
  • Thank you received: 0
Hello m0nb0f, can you explain what you do to hide title and email field please?
I try the piece of code above but fields are still appears…

Something must be wrong in my code. What part must be commented ? :
<tr class='sectiontableentry1'>
<!--      <td><div class='item'>{_ENTERTITLE}</div></td>    --!>
 
      <td><div class='item'>
 
          <input name='ttitle' type='text' value="Not Needed"/>
 
        </div></td>
 
    </tr>

Hide some fields 16 years 1 month ago #1359

  • m0nb0f
  • m0nb0f's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 31
  • Thank you received: 0
Hi Ben,

To hide field "TITLE", I do that :
<tr class='sectiontableentry1' style="display:none">
      <td><div class='item'>{_ENTERTITLE}</div></td>
      <td><div class='item'>
          <input name='ttitle' type='text' class='inputbox' size='40'value=""/>
        </div></td>
    </tr>

Use the style of display "none" and not the comment quote
You must put a default value to register work (so value="" )

Regards

Hide some fields 16 years 1 month ago #1369

  • Ben T.
  • Ben T.'s Avatar
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 21
  • Thank you received: 0
Thanks a lot !! :)

I suppose that it's the same technic to hide email… :P

Hide some fields 16 years 1 month ago #1372

  • Joman
  • Joman's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Hi!

which file do i need to open to be able to change the code?

Hide some fields 16 years 1 month ago #1375

  • m0nb0f
  • m0nb0f's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 31
  • Thank you received: 0
Ben,
Yes, I suppose too but I didn't try it :P

Joman,
You need change the index.html file that you use for your customized template with the HTML template editoron "Other Components Settings"

Regards

Hide some fields 16 years 1 month ago #1376

  • Joman
  • Joman's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
thanks for help so far.

In my backend, other component settings and there if i choose my template doesn't have a html editor. I put the option Modify current customized template on yes. and in the folder media/myjosctemplates there is no html file. hmmm

I have no problem with editing the html, my problem is to find the right index.html.

I am using joomlacomment with the component com_seyret.

Hide some fields 16 years 1 month ago #1386

  • m0nb0f
  • m0nb0f's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 31
  • Thank you received: 0
Hi,
It's on "Contents Settings" and not "Other Component Settings"
Choose "Layout"
Be sure "Your customized template" is writable
Put "Modify current customized template" on Yes
Apply > HTML and CSS will appear
Il will create an index.html file on /home/yoursite/media/myjosctemplates

I don't use it with Seyret, just with Joomla articles but I think that it must work too

Regards

Hide some fields 16 years 1 month ago #1503

  • Joman
  • Joman's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Thanks for help so far guys!

I got the Index file to show up in my ftp now. The problem was that I didnt put "Copy current standard template to customized template directory:" on yes.

However, my changed skriped doesn´t work. :blush:

{/BLOCK-_ENTERWEBSITE}

<tr class='sectiontableentry1' style='display:none'>

<td><div class='item'>{_ENTERTITLE}</div></td>

<td><div class='item'>

<input name='ttitle' type='text' class='inputbox' size='40 ' value='display:none'/>

</div></td>


Thank you for any suggestions!

Hide some fields 16 years 1 month ago #1505

  • m0nb0f
  • m0nb0f's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 31
  • Thank you received: 0
Hi Joman,
Be sure that you do all of this :
- Go to "Contents Settings"
- Choose "Layout"
- Choose a Standard template (HTML and CSS)
- Apply
- Be sure "Your customized template" is writable
- Put "Copy current standard template to customized template directory" on YES
- Apply
- Be sure that in "Your customized template" the good one is selected. If not, select and apply
- Put "Modify current customized template" on Yes
- Apply > HTML and CSS will appear
Il will create an index.html file on /home/yoursite/media/myjosctemplates
- Modify the code of HTML
- Apply

It must work...

Be carreful :
<input name='ttitle' type='text' class='inputbox' size='40 ' value='display:none'/> is not good !!
You must pass a value to register work.

Regards

Hide some fields 16 years 1 month ago #1507

  • Joman
  • Joman's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
m0nb0f wrote:

You must pass a value to register work.

Regards


Hi :)

for example value={website}? Or what do you mean by pass a value?

thanks

edit: I forgot to choose the template in "Your customized template:". It works with value:{website}

Everything works now! so if somebody got a problem, i am a pro at this now :) just ask :D

THANK YOU so much

Hide some fields 16 years 1 month ago #1509

  • m0nb0f
  • m0nb0f's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 31
  • Thank you received: 0
Great ;)

Hide some fields 16 years 1 month ago #1514

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
may I close the thread now? Are all problems solved?

Hide some fields 16 years 1 month ago #1519

  • m0nb0f
  • m0nb0f's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 31
  • Thank you received: 0
I think so Daniel, Joman is "a pro at this now" :lol:
  • Page:
  • 1
Time to create page: 0.145 seconds