Developing (v7+)

Getting currently selected theme from a Block Controller or View

Hi, I am working on a few blocks and I needed to read some data from a XML file that I have in my currently selected theme. Of course I can hard code this path in, and I guess I could parse the directory and put in a drop-down box of the theme that is cu…

URL parameters

using the view's "action" function, is there a way to provide the friendly url. So instead of rendering [code]index.php?cID=33&bID=34&arHandle=Main&btask=passthru&method=removeEntry&entryID=1[/code], and related, is there a way to retrieve the parameters…

Assist with a helper

Being a php, then fairly long time ColdFusion programmer, and now finding myself back in PHP, I really liked the cfdump function in cf. This fellow: http://dbug.ospinto.com/ has written the equivalent in php, and I've pasted his code into a file in /my…

Retrieve posted date

From inside a theme, how can I use getVersionDateCreated() to retrieve the date of the page? Thanks... I'm loving this CMS!

NavMenu - set class via getCollectionName()

I'm trying to configure a nav menu and need to set the active menu hilite based upon current page. Any coders out there who could help? I need to figure out the If statement to do this. Here's sample of two items. I need the "current" class set depen…

domain independent setup?

my running c5 installation should react on 3 Domains (co-domains) all pointing to the same root. My root contains a script realising a domain sensitive redirect with header('Location: http://www.domain1.com/ab/'); What I need is that C5 keeps the requ…

Block->getBlockCollectionObject()

After adding a new block, I tried fetching the collection path off the current block object, but with no success. All that what was sent back to the browser, was an collection object with the attribute error=10 and the version object. In the block's sav…

Here is how to add code and coloring syntax in TinyMCE

Hi @ all after many test, because i really like geshi, i finally found an alternative. the sipliest one because as we said "the better is the enemy of the good". First excuse my poor english. Then, To add the code insertion and the syntax cooloring…

Regarding Main menu order

I am a newbie user. Just 2nd day with c5 now. So please excuse if it is a stupid question. After going through the screencast, I am trying to create my own theme and I am trying to float the menu items left instead of right (greensalad theme floats it…

Filter Posts