Accordion Menu add-on Placeholder

Permalink
Hi There,

I have the accordion menu running on my staging site (locally so cant give you a URL). I am looking to tweak its functionality like I have done in the past for a superfish menu so I can create placeholders as this is fairly key.

I always turn to this article - (http://www.webdesignblog.org.uk/2011/03/concrete5-create-placeholders-in-main-menu-auto-nav/) to do this and it works with the superfish template. However I tried running in the same change on the Accordion Menu and it doesnt like it atl all saying:

"Parse error: syntax error, unexpected ':' in home/myrootfolder/etc.etc..."

I wasnt really expecting it to work but that seems an odd issue. Anyone with php knowledge have any suggestions. I dont think its right to post up the full view.php file as its a premium add-on but it does seem to mirror the normal auto-nav block fairly closely.

Otherwise any suggestions how I could achieve this.

By the by - I love c5, but placeholders are a key part of running a CMS for me and I'm suprised these aren't natively supported.

cheers


if ($_c->getCollectionAttributeValue(‘placeholder’)) {
$pageLink=”javascript:void(0)”;
}

 
argvader replied on at Permalink Reply
argvader
Hi,

The code snippet looks good but you may try replacing the double quotes with single quotes.

Single quoted strings should be taken literally and not variable replaced. Double quoted strings can have variables and escapes.

I am not a PHP guru and haven't looked into if the : is an identifier of some type.
tobyme replied on at Permalink Reply
Thanks for the reply

Hmm - that sort of works in the sense it stops the error, however sadly the code doesnt actually achieve what I was trying to do in creating a placeholder. May post this to the support for that menu, but if anyone has any smart ideas I would greatly appreciate it.