linking to ID then reordering

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
dmpp
Posts: 12
Joined: Tue Mar 16, 2010 8:24 pm

linking to ID then reordering

Post by dmpp » Tue Aug 10, 2010 12:49 pm

I'm currently running 2.6.3 - so if this is what was fixed in 2.6.6, please let me know.

I'm running the FAQ database but linking to specific categories from various parts of my website. If I add a new section, and reorder them, the links end up pointing to the wrong FAQ category.

Is there a fix for this?

Thorsten
Posts: 14781
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: linking to ID then reordering

Post by Thorsten » Tue Aug 10, 2010 1:40 pm

Hi,
dmpp wrote:Is there a fix for this?
no.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

dmpp
Posts: 12
Joined: Tue Mar 16, 2010 8:24 pm

Re: linking to ID then reordering

Post by dmpp » Tue Aug 10, 2010 2:30 pm

Thorsten wrote:
dmpp wrote:Is there a fix for this?
no.
can you please add this as an item to update in the next release? I have about 30 categories, being linked to individually from all over the 3000-page website, and finding the links to update them is time consuming.

I would imagine that this can be an easy fix by being able to link directly to a category via the URL string. Why is it that when I re-order the categories, the cat # changes?

I link to the categories by pointing the link to: index.php?action=show&cat=18 (for example).

Should I be linking some other way?

Thorsten
Posts: 14781
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: linking to ID then reordering

Post by Thorsten » Tue Aug 10, 2010 2:33 pm

Hi,
dmpp wrote:I would imagine that this can be an easy fix by being able to link directly to a category via the URL string. Why is it that when I re-order the categories, the cat # changes?
this isn't an easy fix. The ID of the category is changing because I implemented that way.

I'll think how to solve that issue.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

pt20100201
Posts: 133
Joined: Mon Feb 01, 2010 2:11 pm
Location: Porto . Portugal
Contact:

Re: linking to ID then reordering

Post by pt20100201 » Mon Aug 23, 2010 3:15 am

Hi,



Perhaps this (and other) issues could be resolved by using UUIDs - either by themselves or in complement to the current ID implementation.



The UUID would permanently identify the item and the current ID (or a specific field) could be used to custom order items on a list.



There are several free implementations of secure UUID generators in JavaScript, PHP,...



We were writing a text to post on the "Proposals" forum about UUIDs and phpMyFAQ - perhaps it will be more clear than this short reply.



..

Kind regards

2010-02-17

pt20100201

..

Post Reply