11 years ago
4
Topic

Hello,

We've come to realise with Mehdi that interpretation of hidden fields comes after fields that needs that interpretation on other visible positions.

We came to the conclusion that hidden position should be placed first into the template.

Thanks.

Nico

Get a VIP membership
11 years ago
2
Level 1

Hi Nico,

It's not a bug !

Make your template like that in 2 minutes.

You make a copy of seb_one template folder with a new name seb_two.

Inside your new template nico_one, you open the file nico_one/index.php, you copy the position Hidden on lines 198 until 203. You put the copy between the lines 38 and 39. You change the code like that :

  if ( $cck->countFields( 'hidden-top' ) ) { ?>
 


  renderPosition( 'hidden-top' ); ?>
 


 

In your file nico_one/templateDetails.xml, you change line 3 the name of the template with:

nico_one

In your file nico_one/templateDetails.xml, you add a position after line 79 with:

hidden-top

In your file nico_one/templateDetails.xml, you change line 31 and 32 the name of the ini language file with:


  en-GB/en-GB.tpl_seb_two.ini
  fr-FR/fr-FR.tpl_seb_two.ini
 


In your folder nico_one/languages/en-GB/ and seb_two/languages/fr-FR/ change name of files like that:

nico_one/languages/fr-FR/fr-FR.tpl_seb_two.ini

nico_one/languages/en-GB/en-GB.tpl_seb_two.ini

You can stop here and compress the folder to a zip. You install it.

A other solution , a hidden variation.

11 years ago
1
Level 2

Hey Alex !

Hope you're doing well :)

Thanks for your answer, I'll make a template as I'm not sure about variation...

But, does our using of this hidden position is not standard ? I mean, is there cases where hidden position needs to be last ?

If it's the case, maybe having a hidden position into first position AND a hidden position into last position would help having a native template covering all usecases ? (it would help about hte understanding of interpretation as well ?)

Best,

Nico


11 years ago
0
Level 3

Not sure to get perfectly the level of post with answering, sorry...

Why is there the possibility not to answer directly to the post ? I mean, why "reply to this topic" after the first one ?

Not important, but to clarify... :)

11 years ago
0
Level 1

Hey Alex !

Hope you're doing well :)

Thanks for your answer, I'll make a template as I'm not sure about variation...

But, does our using of this hidden position is not standard ? I mean, is there cases where hidden position needs to be last ?

If it's the case, maybe having a hidden position into first position AND a hidden position into last position would help having a native template covering all usecases ? (it would help about hte understanding of interpretation as well ?)

Best,

Nico


Get a VIP membership