pagination and attaching a image to a page with type content...??

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
jetli83
New Member
New Member
Posts: 2
Joined: Thu Jun 26, 2008 1:06 pm

pagination and attaching a image to a page with type content...??

Post by jetli83 »

Hi there, im pretty new to CMSMS, was just wounder if you could attach a image which has been uploaded to a page. so the results will look somethink like this: http://www.jewelultra.co.uk/news. and also if theres a module that can help me with pagination?
Any help will be appreciated.

Jason
stopsatgreen
Power Poster
Power Poster
Posts: 322
Joined: Sat Feb 04, 2006 1:24 am

Re: pagination and attaching a image to a page with type content...??

Post by stopsatgreen »

There may be other ways, but here's one:

Name you image with the page id or alias in it; ie, if your page alias is 'news-page', then call your image 'img-news-page.jpg' (or whatever). Then, in the Menu Manager template, call the image with

Code: Select all

<img src="/path/to/image/img-{$node->alias}.jpg" />
You will have to update the image name if your page alias changes, however.
jetli83
New Member
New Member
Posts: 2
Joined: Thu Jun 26, 2008 1:06 pm

Re: pagination and attaching a image to a page with type content...??

Post by jetli83 »

Thanks for your help, but i think i got to get my hands dirty and mess around with the code.
Post Reply

Return to “CMSMS Core”