Jump to content

Determining page in template


FNZAS Invision

Recommended Posts

Posted

Hi there,

I've been scouting through the documentation trying to find variables a template has access too - haven't been able to find anything too helpful.

Basically in my template i'm wanting to change the layout slightly if their on the home page.

Posted

I can't offer any concrete advice on how to go about pulling this off, but each Pages article has its own id number (page_id in table cms_pages). I would think there's some way of targeting along the lines of an if-clause looking for data-pageapp=cms, data-pagelocation=front, data-pagemodule=pages and data-pageid=xx.

I'm way outside my comfort zone with this sort of advice but it might help spur someone more knowledgeable than me to complete the answer, so I thought I'd post it anyway :)

Posted

I can't offer any concrete advice on how to go about pulling this off, but each Pages article has its own id number (page_id in table cms_pages). I would think there's some way of targeting along the lines of an if-clause looking for data-pageapp=cms, data-pagelocation=front, data-pagemodule=pages and data-pageid=xx.

I'm way outside my comfort zone with this sort of advice but it might help spur someone more knowledgeable than me to complete the answer, so I thought I'd post it anyway :)

Thank you very much, there doesn't seem to much documentation around this which is a bit of a shame.

Once I work it out i'll reply back here

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...