OXID Community Forum

> International Forums > Templates and Design > Solution: Dynamicly inlcude CMS-pages
Login
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Thread: Solution: Dynamicly inlcude CMS-pages


Reply
 
Thread Tools Display Modes
#Top   #1  
Old 02-17-2012, 12:47 PM
wayne0101 wayne0101 is offline
Junior Member
Join Date: Feb 2012
Posts: 6
wayne0101 is on a distinguished road
Default Solution: Dynamicly inlcude CMS-pages

because my original thread was close by the admin (see Thread 13345) and because i want to share the solution to all users, not only the german speaking ones, here it is:
Code:
	[{php}]
		for( $i = 0; $i < 15; $i++ ){
			$this->_tpl_vars["advertisementID"] = "advertisement".$i;
	[{/php}]
		[{oxifcontent ident=$advertisementID object="oCont"}]
			[{ oxcontent ident=$advertisementID }]
		[{/oxifcontent}]
	[{php}]
		}
	[{/php}]
this includes up to 15 cms-pages, starting with a substring "advertisement" as ident and followed by a number from 0 to 14 in a template file, for example start.tpl.

if someone knows a better solution or knows, how to code this in pure smarty, please let me/us know.

greetings
wayne

Last edited by wayne0101; 02-17-2012 at 12:49 PM.
Reply With Quote
#Top   #2  
Old 02-17-2012, 04:04 PM
Marco Steinhaeuser's Avatar
Marco Steinhaeuser Marco Steinhaeuser is offline
Community Guide @ OXID
Join Date: Oct 2008
Posts: 10,865
Marco Steinhaeuser is on a distinguished road
Default Re: Solution: Dynamicly inlcude CMS-pages

Quote:
Originally Posted by wayne0101 View Post
because my original thread was close by the admin (see Thread 13345) and because i want to share the solution to all users, not only the german speaking ones, here it is:
Thanks for sharing mate! And thanks for including the international audience!
That's not an everyday behaviour yet :-)

Regards
__________________
Marco
http://about.me/marco.steinhaeuser

Will ignore unsolicited support requests via PM, email or IM.
Reply With Quote
Reply

Bookmarks

Tags
cms, cmspages, dynamicly, inlcude, solution, template

« Previous Thread | Next Thread »
Thread Tools
Display Modes

Nicht Sichtbar
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamicly inlcude CMS-pages? wayne0101 Templates and Design 1 02-16-2012 05:27 PM
OXID Best Solution Award Marco Steinhaeuser Allgemeines 10 10-18-2010 02:05 PM
Cart-bug (and solution) avenger Templates and Design 2 02-12-2010 10:45 AM
Solution: If you have problems with the CSV Separator artvera Administration 1 07-30-2009 01:17 PM

All times are GMT +1. The time now is 11:57 AM.