Edit mode - insert short internal URLs, not the rewritten v

You have a suggestion for a future version of phpMyFAQ? Then post it here!

Moderator: Thorsten

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

Edit mode - insert short internal URLs, not the rewritten v

Post by pt20100201 »

.
Edit mode - insert short internal URLs, not the rewritten version

Dear Thorsten Rinne / Development Team

The phpMyFAQ's content editor has a button to insert internal FAQs records by choosing it's ID - an useful feature -, automatically inserting the URL and the FAQ's question in the text.

However, the URL used in the (X)HTML code is a rewritten URL (if this option is active).

Questions are prone to changes during their lifetime, thus also the correspondent rewritten URLs.

This leads to broken links hard to detect.


It would be preferable (in our opinion) to use the "short" URL version in the code (those using the internal FAQ ID), with the question in the visible text.

1. Examples

1.1
"A long long really long question text"
is inserted as

Code: Select all

<a href="http://faq.example.com/faq/content/.../a-long-long-really-long-question.html" ...>A long long really long question text</a>
With the visible text "A long long really long question text" .

1.2
if the question changes to "A very long question", the URL and the visible text aren't changed, so the link is broken.

1.3
If the FAQ's ID is "1234",
one may use the URLs

Code: Select all

<a href="http://faq.example.com/faq/index.php?solution_id=1234" ...>A long long really long question text</a>
or, preferably ( avoiding ? and = ),

Code: Select all

<a href="http://faq.example.com/faq/solution_id_1234.html" ...A long long really long question text</a>>
The text of the inserted internal FAQ's question remains the same, but the link continues to point to the correct record.


Naturally, it would be preferable, after a FAQ question edition, to refresh the URLs and/or the visible text in all records with links to that record - but this is not simple.
..
Kind regards
2013-08-21
pt20100201
..
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Edit mode - insert short internal URLs, not the rewritte

Post by Thorsten »

Hi,

this is an awesome idea, please add it at https://github.com/thorsten/phpMyFAQ/issues

Thanks!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
pt20100201
Posts: 134
Joined: Mon Feb 01, 2010 2:11 pm
Location: Porto . Portugal
Contact:

Re2:Re: Edit mode - insert short internal URLs, not the rewr

Post by pt20100201 »

.
Re2:Re: Edit mode - insert short internal URLs, not the rewritte
.
Dear Thorsten Rinne
Thorsten wrote:...
this is an awesome idea, please add it at https://github.com/thorsten/phpMyFAQ/issues
...
Thorsten
Thank for your kind words - you are exaggerating....

We don't have a GitHub account, so we can't post the proposal there.

Nevertheless, it could only happen next week (you may find odd to have a post here saying that operations could only happen next week – but it's not).

Perhaps then we'll have new guide lines - regarding, e.g., the GitHub's (and similar) service.
..
Kind regards
2013-08-22
pt20100201
..
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Edit mode - insert short internal URLs, not the rewritte

Post by Thorsten »

Hi,

that's okay! I'll add it for you! :-)

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Edit mode - insert short internal URLs, not the rewritte

Post by Thorsten »

Hi,

finally this feature will be included in phpMyFAQ 2.9.0-beta. Sorry for the delay.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply