Topic: How/Where to change the [link] destination?

Hello everybody!

I'm looking for a solution: where can I change the [link] destination?
I'm running on the latest version of CN.

I saw someone on this forum saying you can edit it in "core.php";
but that doesn't exist anymore.

Any help is appreciated.

Re: How/Where to change the [link] destination?

Hello everybody!

I'm looking for a solution: where can I change the [link] destination?
I'm running on the latest version of CN.

I saw someone on this forum saying you can edit it in "core.php";
but that doesn't exist anymore.

Any help is appreciated.


The template var?

[link] .. [/link]    Will generate a permanent link to the full story

Re: How/Where to change the [link] destination?

The template var?

[link] .. [/link]    Will generate a permanent link to the full story

It's a custom template, only showing the title

[b][link]{category}: {title}[/link][/b]

It redirects to public_html/nieuws.php, but it should be public_html/pagina/nieuws.php

4 (edited by 2015-11-28 20:53:24)

Re: How/Where to change the [link] destination?

It's a custom template, only showing the title

[b][link]{category}: {title}[/link][/b]

It redirects to public_html/nieuws.php, but it should be public_html/pagina/nieuws.php


Not tested:

[url=public_html/{title}/nieuws.php]{title}[/url]

Do you want show the full-story into a new page?

Re: How/Where to change the [link] destination?

Not tested:

[url=public_html/{title}/nieuws.php]{title}[/url]

Do you want show the full-story into a new page?

Yes.

6 (edited by 2015-11-29 17:56:23)

Re: How/Where to change the [link] destination?

Yes.


Try this

with a single page index.php switch between to templates
get the vars from the url.




<?php
$page_alias= $_GET['seite'];
$template= $_GET['vorlage'];
$category = $_GET['kategorie'];
$number = 1;
include("cutenews/show_news.php");
?>

create 2 templates:

Name: full

<article>
{full-story}
[url=http://yourdomain.com/index.php?kategorie={category}&vorlage=short]back to short story[/url]


[url=http://yourdomain.com/index.php?kategorie={category}&seite={page_alias}&vorlage=full]go to full-story[/url]
</article>

name: short

<article>
{short-story}
[url=http://yourdomain.com/index.php?kategorie={category}&seite={page_alias}&vorlage=short]back to short story[/url]


[url=http://yourdomain.com/index.php?kategorie={category}&seite={page_alias}&vorlage=full]go to full-story[/url]
</article>