Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

create treelike sef-urls on the fly (new menumodul
(1 viewing) (1) Guest
Support forum for users using free edition of JoomSEF 3 (Joomla 1.5 compatible). These forums are mainly for mutual help between users.

Please note that due to our capacity limitations, we do not monitor these forums regularly.
  • Page:
  • 1

TOPIC: create treelike sef-urls on the fly (new menumodul

create treelike sef-urls on the fly (new menumodul 17 years, 8 months ago #1873

  • Xel
  • OFFLINE
  • Posts: 3
Hi,
I am creating a new menu module (with fitting component to create a treelike structure which is not based on sections and categories but on pages (I use static pages for that purpose), links and folders [where everything can be a parent from another item] )

Since I do not use sections and categories anymore I'd have to set up the sef-urls by hand (or have a flat url where every item is in the root folder - which doesn't really help with sef)

Is there any possibility I can make the module tell JoomSEF how a new created sefurl should look like?

Or is there a good way to make the component do that when inserting new items (this would be less prefered - If one changes something via direct database access this would not work anymore... and I think I am not the only one to do those stuff (I know it isn't the fine way, but somtimes its a much more efficient way to do things...

I'd really like to be able to say it works with JoomSEF out of the box... but I can not until I have a solution to build up links based on my treelike stucture...

Re:create treelike sef-urls on the fly (new menumo 17 years, 8 months ago #1894

  • Xel
  • OFFLINE
  • Posts: 3
Sorry, but I need to push this up again - I really need a way to get my module (or component, I do not really care anymore) create those links according to the treestructure my menu has. This will be the last step before being able to release the first stable version of "treesite"...

I could make the component insert stuff into the database - this would not be the real problem, but first of all this would be a dirty trick and secondary it would melt the plugins together, cause I do not know if JoomSEF is allready installed (is there a good way to check if JoomSEF is installed?) and it wouldn't work if JoomSEF is installed after my component and module.

If there is no other way I will have to make my component creating the sef-links but I am pretty sure this will cause problems...

Re:create treelike sef-urls on the fly (new menumo 17 years, 8 months ago #1948

  • jirka
Hello,

what you can do is that for each menu item you have, you let JoomSEF generate its SEF url. For static content, this will be probably based on the content title.

After the SEF URL is generated, you can edit it via JoomSEF Control Panel, View/Edit SEF URLs function (or alternatively custom). If you do that, JoomSEF will use any URL you define there. By default, when you change it, it will be saved as "custom link" (there is a checkbox for that), so it will not be deleted when you prune the auto-created links and you do not need to recreate.

Just in case you are reinstalling JoomSEF (not by auto-update but via un-and-reinstall), remember to backup your custom redirections. There is a function for that as well.

Best regards,
ARTIO Support Team
  • Page:
  • 1
User Login Empty