[ Suggestion ] Using the short URL version on print and PDF

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

Moderator: Thorsten

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

[ Suggestion ] Using the short URL version on print and PDF

Post by pt20100201 » Mon Dec 16, 2013 6:27 pm

.
[ Suggestion ] Using the short URL version on print and PDF FAQ versions

Dear Thorsten Rinne / Development Team

Recently, we suggested the use of the short form of a phpMyFAQ FAQ record when referring it on another internal record (preventing breaking the links after a question text edition on the related FAQ - also simplifying the URL).

We think that the same approach is useful on the print and PDF versions: the FAQ's title is already on the page[1].

Also, long URLs on those versions aren't fully visible due to their size - as you may see on the attached image.

[attachment=1]pt20100201-20131216-faq-pdf-version-footer-with-long-url-cropped.png[/attachment]
..
Kind regards
2013-12-16
pt20100201
..
..
[ Adenda ]
If someone must use the long URL version, it's possible to mitigate the problem (e.g.) by using HTML5's "wbr" tag ("Word Break Opportunity"), & #8203 ; ("Zero Width Space" - ZWSP) Unicode character after each slash "/"
on the non-domain URL zone, or CSS3.

Using the URL on the image:

Code: Select all

https://faqs.up.pt/<wbr>faq/<wbr>content/<wbr>79/<wbr>496/<wbr>pt/<wbr>posso-...
(in XHTML it must be self-closing)
may be rendered as

https://faqs.up.pt/faq/content/79/496/pt/
posso-...

...
or
...
or
...
https://faqs.up.pt/
faq/
content/
79/
496/
pt/
posso-..

.
Similar (and other) information may be found on
-
"<wbr> - HTML | MDN". 2013-11-22 [ © 2005-2013 Mozilla Developer Network and individual contributors ]
https://developer.mozilla.org/en/docs/Web/HTML/Element/wbr
-
"CSS Text Module Level 3". 2013-10-10 [ W3C Last Call Working Draft ]
http://www.w3.org/TR/css3-text/
-
"Word wrapping/hyphenation using CSS". Kenneth Auchenberg. 2012-03-04. [ Update on 2013-07-27 ]]
http://kenneth.io/blog/2012/03/04/word-wrapping-hypernation-using-css/
-
'Make “Pre” Text Wrap'. [Chris Coyier]. 2012-07-12.
http://css-tricks.com/snippets/css/make-pre-text-wrap/

.
You do not have the required permissions to view the files attached to this post.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest