[SOLVED] Get root page image - is this possible?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
Simon66
Power Poster
Power Poster
Posts: 250
Joined: Wed Aug 29, 2007 4:36 am

[SOLVED] Get root page image - is this possible?

Post 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
Last edited by Simon66 on Sat Mar 22, 2014 9:52 am, edited 1 time in total.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Get root page image - is this possible?

Post by Rolf »

Try the CGSimpleSmarty module.

Grtz. Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Simon66
Power Poster
Power Poster
Posts: 250
Joined: Wed Aug 29, 2007 4:36 am

Re: Get root page image - is this possible?

Post 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
Post Reply

Return to “CMSMS Core”