Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2013-07-04 18:51:53

etc
Developer
Registered: 2010-11-11
Posts: 4,331
Website GitHub

etc_link_helper: enhanced Edit link tab

This admin-side plugin is inspired by this forum question: how to create a menu of heterogeneous (e.g. articles, categories, sections) txp links? A natural idea is to gather them under some Link category and use <txp:linklist /> tag for the output.

That’s where etc_link_helper comes in handy: it let’s you avoid url copy-pasting, by appending articles, categories and sections lists to Edit link tab.

Last edited by etc (2013-07-04 18:55:44)

Offline

#2 2013-07-04 21:49:32

etc
Developer
Registered: 2010-11-11
Posts: 4,331
Website GitHub

Re: etc_link_helper: enhanced Edit link tab

Many thanks to Uli for quick error reports, should be fixed now.

Offline

#3 2014-07-15 06:51:05

raminrahimi
Member
From: India
Registered: 2013-03-19
Posts: 243

Re: etc_link_helper: enhanced Edit link tab

how to have sub-menus as well ?

Offline

#4 2014-07-15 08:28:16

etc
Developer
Registered: 2010-11-11
Posts: 4,331
Website GitHub

Re: etc_link_helper: enhanced Edit link tab

raminrahimi wrote #282145:

how to have sub-menus as well ?

That’s not really etc_link_helper related, but you can see here.

Offline

#5 2014-07-19 12:57:56

etc
Developer
Registered: 2010-11-11
Posts: 4,331
Website GitHub

Re: etc_link_helper: enhanced Edit link tab

A new beta (harmless, but unstable) is ready for testing. It introduces drag’n‘drop link sort/category assignment. Requires txp 4.5+.

Last edited by etc (2014-09-23 15:43:27)

Offline

#6 2014-09-21 11:04:48

raminrahimi
Member
From: India
Registered: 2013-03-19
Posts: 243

Re: etc_link_helper: enhanced Edit link tab

if we create a menu with etc_link_helper, can we create breadcrumb ?

Offline

#7 2014-09-21 14:03:09

etc
Developer
Registered: 2010-11-11
Posts: 4,331
Website GitHub

Re: etc_link_helper: enhanced Edit link tab

Hi Ramin, I’m (slowly) working on public tags of the plugin, will try to include breadcrumbs in the next release. Meanwhile, you can do it with etc_query (tip updated).

Offline

#8 2014-09-23 12:46:06

raminrahimi
Member
From: India
Registered: 2013-03-19
Posts: 243

Re: etc_link_helper: enhanced Edit link tab

I’m facing with another problem, when i want to have menu like this:
home = no submenu
about = no submenu
services = has submenu
contact = no submenu

it’s not going to sort like that ! it will come like this:
home
about
contact
services

it mean contact page can’t sort to come after services

home, about, contact = category name: menu

services = it’s sub category of menu

=======
also another problem is when i am on home page, automatically it will assign active class to all menus.
please help me ETC :-(

Offline

#9 2014-09-23 15:39:18

etc
Developer
Registered: 2010-11-11
Posts: 4,331
Website GitHub

Re: etc_link_helper: enhanced Edit link tab

raminrahimi wrote #284122:

it’s not going to sort like that ! it will come like this:
home
about
contact
services

it mean contact page can’t sort to come after services

home, about, contact = category name: menu

services = it’s sub category of menu

That’s normal, since we output category links (home, about, contact) first, then subcategories (services). If you just want to put contact at the end, the easiest way is to remove the contact link from menu category, and append it manually:

<ul>
<txp:category_list type="link" categories="menu" children="0" form="menu" wraptag="" break="" />
<li><txp:permlink id="contact article id"><txp:title /></txp:permlink></li>
</ul>

also another problem is when i am on home page, automatically it will assign active class to all menus.
please help me ETC :-(

Try to install etc_url and replace //a[contains(@href, "<txp:page_url />")] selector by //a[@href="<txp:etc_url />"] in etc_query calls.

Offline

#10 2014-09-23 15:58:12

raminrahimi
Member
From: India
Registered: 2013-03-19
Posts: 243

Re: etc_link_helper: enhanced Edit link tab

menu sorting:
i think that’s very important to make that facility in your next version, because we may need more menus with different sorting …
because i want to prepare website for my clients, they need dynamic and easy manageable, they don’t know the coding, all the time they goes there and change …
any how, i hope to have that feature on next version, to manage easily any kind of navigation.
thanks

Offline

#11 2014-09-24 07:44:42

etc
Developer
Registered: 2010-11-11
Posts: 4,331
Website GitHub

Re: etc_link_helper: enhanced Edit link tab

Sorting heterogeneous items (like links and categories) is not as trivial as it might seem, but I will think about it.

Offline

#12 2014-09-26 06:27:49

raminrahimi
Member
From: India
Registered: 2013-03-19
Posts: 243

Re: etc_link_helper: enhanced Edit link tab

That’s great to see the solution way for that …
could you please let me know approximately date, that would be available to use ?
thanks

Offline

Board footer

Powered by FluxBB