Fieldtype

Developer
Supported

Auto Pages URI

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From Laurence Cope

     

You must be logged in to post.

Add channel name in front of URI

Support Request

Postitief
Postitief

Is there a way to automatically put the channel name in front of the URL? Now it only copies the title to the pages URI, but it woud be nice if the channel would be in front of it.

channel/title 

 

Amity Web
# 1
Developer
Amity Web

The add-on uses pure Javascript to get the value of the title and put this in the Pages URL. So if the Channel is referenced in some other field or somewhere in the page you are on, then in theory yes we can grab that and append it to the Pages URL.

BUT then this add-on has no options associated with it,  e.g. “Insert Channel Name?” as an option. So the quick way is just change the JS direct to add the name in, but we would not change our code for this as we dont want the channel in there without options, and we wont be able to devote the time into adding an option into Settings for it right now though.

If you do want to extend this further, as it is a free add-on, feel free to modify and let us know, its on GitHiub https://github.com/amityweb/auto_pages_uri.

Or you can just modify it to suit your needs. The Javascript needs updating to grab the Channel name from somewhere if it exists on the page, and insert that before the Pages URL.