Page 1 of 1
[SOLVED] Get root page image - is this possible?
Posted: Sat Mar 22, 2014 2:36 am
by Simon66
I can put the page image in a menu or on a page but now I'm trying to make the root page image appear on all sub pages.
(Page 'image' dropdown under options tab.)
Does anyone know if this is possible and any hints if it is?
Thanks
SimonR
Re: Get root page image - is this possible?
Posted: Sat Mar 22, 2014 7:30 am
by Rolf
Try the CGSimpleSmarty module.
Grtz. Rolf
Re: Get root page image - is this possible?
Posted: Sat Mar 22, 2014 9:52 am
by Simon66
Thanks Rolf
I already looked at CGSimpleSmarty and rejected it. I also tried to write a very complicated UTD which was rubbish and didn't work.
After your reply I looked at CGSimpleSmarty again and realised I could daisy chain them.
It was this simple:
Code: Select all
{cgsimple::get_root_alias('','rootalias')}
{cgsimple::get_page_content($rootalias,'image','rootimage')}
<img src="{uploads_url}/images/sub_logos/{$rootimage}"></img>
Thanks again
Simon