Forums / Setup & design / Internal link to articles, folders and files

Internal link to articles, folders and files

Author Message

willy jansen

Wednesday 03 November 2004 6:55:08 am

What tag can I use (and how do I use it) to create a link to another article or folder in my site.

I'd like to create something like...

<link href="/content/view/123">Click on me please!!!</link>

(assuming i created an article with ID 123 eralier on)

I also want to create a link to an "attached" file, like this...

<link href="/file/download/123">Click on me please to download the file!!!</link>

I have been browsing the forums for this (because it seems basic stuff) but I didn't find a good solutions.
This...

<link id=123>Click on me please !!!</link>

only works when the link is already stored...

Maybe I don't understand exactly how urls must be treated in ezpubli.

All hints and suggestions are welcome.

Balazs Halasy

Wednesday 03 November 2004 11:56:50 am

Hi,

As far as I know you still have to input the entire URL (http://www.example.com/content/view/full/123 or the nice/virtual version) as the href parameter. During the next development cycle we'll most probably implement the internal link feature which will let you create internal links in an easier and more dynamic/elegant way. Stay tuned.

Balazs

willy jansen

Thursday 04 November 2004 1:24:11 am

Alright.

And what about the files?
Can you put a link like /file/download/125 ? or must it be /file/download/727/733/this%20is%20a%20file%20with%20spaces%20initsname.dic

what puzzles me is that by relating an object and using the object tag you almost achieve an internal link to another page,file,folder,etc inside your system. except for the fact that you cannot define the "link text" ("click on me please") that is outputted by that tag...

thanks balazs.
nice hat by the way

willy jansen

Monday 15 November 2004 9:20:54 am

ok. i fingered a solution.

created a custom tag (find instruction here: http://www.ez.no/ez_publish/documentation/customization/components/datatypes/ezxmltext/custom_tags) called "ilink"

in my ilink.tpl i have

<a href="/index.php/gmc6/content/view/full/{$nodeid}">
 {$content}
</a>

in my article xmlfield i call this tags as follows

<custom name='ilink' nodeid="118">
 A link to an internal article or folder
</custom>

works good enough for me

but I'm still VERY MUCH inetersted in how to creat links to files (attached as related objects to the article)

poon sg

Sunday 21 November 2004 11:41:05 pm

Sorry for clicking this topic.
Is it possible to let guest use this way to create a internal link?(i only can know the related object id)
1)how to obtain node id from object id ?
2)use another way?
3)if I related an article to a article intro., how to let it display in one line
example:

detail pls see <object id='1234'>

in guest interface it will display as below:
<i>detail pls see
file 1
Read More</i>

but I want to display
<i>detail pls see file 1
Read More</i>

any advanced very be high appreciated.
regards!
sgpoon

poon sg

Sunday 21 November 2004 11:59:48 pm

any idea or help?
sgpoon

eZ debug

Timing: Jan 31 2025 00:36:43
Script start
Timing: Jan 31 2025 00:36:43
Module start 'content'
Timing: Jan 31 2025 00:36:43
Module end 'content'
Timing: Jan 31 2025 00:36:43
Script end

Main resources:

Total runtime0.2286 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0087 588.0625370.2734
Module start 'content' 0.00870.0220 958.33591,005.7031
Module end 'content' 0.03070.1978 1,964.03913,894.5391
Script end 0.2285  5,858.5781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00492.1588200.0002
Check MTime0.00140.6183200.0001
Mysql Total
Database connection0.00090.372810.0009
Mysqli_queries0.123053.81431410.0009
Looping result0.00130.56861390.0000
Template Total0.197386.310.1973
Template load0.00100.430510.0010
Template processing0.196385.892910.1963
Override
Cache load0.00070.289610.0007
Sytem overhead
Fetch class attribute can translate value0.00200.862310.0020
XML
Image XML parsing0.00030.145210.0003
General
dbfile0.00743.2186200.0004
String conversion0.00000.003930.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs