Adding attribute to HTML Menu item

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
dcaplan
New Member
New Member
Posts: 3
Joined: Wed Dec 23, 2009 9:41 pm

Adding attribute to HTML Menu item

Post by dcaplan »

We are trying to add a custom attribute to a menu item that is a URL link to a _blank page. (title="LooseStitch" rel="gb_page_center[640, 480]" )

Ultimately I would like the link to look like this: NC Pestill Print It! but of course I cannot edit these attributes for a menu item.

I am hoping that someone has tried something similar to this or has an idea how I may edit this.

Any ideas?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Adding attribute to HTML Menu item

Post by Dr.CSS »

You can use the Content Type: link... there are 2 link types you most likely will need external link type...
dcaplan
New Member
New Member
Posts: 3
Joined: Wed Dec 23, 2009 9:41 pm

Re: Adding attribute to HTML Menu item

Post by dcaplan »

Yes, I have set the menu type to be 'external link' I am just not sure how to add that custom attribute to the link code. I am using GreyBox (like lightbox, but for pages rather than images) so you can better understand my goal.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Adding attribute to HTML Menu item

Post by Dr.CSS »

You may have to make a new menu template and call the title attribute aka description which you could use to be the rel= part...
dcaplan
New Member
New Member
Posts: 3
Joined: Wed Dec 23, 2009 9:41 pm

Re: Adding attribute to HTML Menu item

Post by dcaplan »

Thank you,

I am fairly new with CMS Made Simple, so the simplest task is a little complicated for me at this point, so any further assistance you could provide would be welcomed.

Thank you!
Post Reply

Return to “Developers Discussion”