MODx themes for MODx Revo CMS
  • Welcome to MDxThemes - MODx themes website !
  • Premium high quality Website Modx themes
  • Bootstrap enabled MODx themes
  • HTML5, CSS3, responsive & SEO enabled themes
  • Modx theme Documentation and Support
  • MODx theme tutorials on building a website with MODx CMS.
  • Fast, super easy & powerful theme management system.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: disable the Parent link of some of the menu items

disable the Parent link of some of the menu items 4 years 10 months ago #58

Hi, Can i check, do you know how can i disable the Parent link of some of the menu items? i was reading online and came up with : forums.modx.com/thread/40823/how-to-disable-clickable-in-one-link-wayfinder
have you had any experience with this?
Last Edit: 4 years 10 months ago by K S.
The administrator has disabled public write access.

disable the Parent link of some of the menu items 4 years 10 months ago #59

Edit the resource. In Settings Tab >> Select Resource type "Weblink" and save it.
Re-edit the resource and under "Weblink" field add #
Save the resource.

Thats it!
Attachments:
Last Edit: 4 years 10 months ago by Mangesh.
The administrator has disabled public write access.

disable the Parent link of some of the menu items 4 years 10 months ago #62

Another way to completly remove the a link tag.
<li[[+wf.id]][[+wf.classes]]>
 
	[[+id:is=`1`:or:is=`2`:then=`<span class="customclass">[[+wf.linktext]]</span>`:else=`
 
		<a href="[[+wf.link]]" title="[[+wf.title]] [[+id]]" [[+wf.attributes]] class="tercolor">
			[[+wf.linktext]]  
		</a>
		`]] 
			[[+wf.wrapper]]
	</li>

Your css to style the menu item.
.customclass { Your css here... }
The administrator has disabled public write access.
  • Page:
  • 1