I'm using GRAV CMS on my site and would like to create a news page. I created the page using the template ready for the Blog, everything was as expected I only have one problem that when I click on the read more I would like to redirect to another page. Has anyone ever been in this situation?enter image description here
Asked
Active
Viewed 408 times
0
-
I'm confused as to what your question is. In the default template, the "Read more" links (note redirect is different) to the actual article. What is your current setup doing and how is that different from what should happen? – Jacobm001 Dec 08 '17 at 00:24
-
I would like to refer you to another page when I click on read more. – Daniel Pelissari Dec 11 '17 at 10:31
-
And what is preventing that from happening? That is demonstrated by the example theme; have you even tried? – Jacobm001 Dec 11 '17 at 15:16
-
I would like to send it to an external page, it will refer you to the local page with the content of the text. – Daniel Pelissari Dec 11 '17 at 17:07
-
Okay... Have you tried changing how that url is generated? – Jacobm001 Dec 11 '17 at 17:11
1 Answers
0
In the YAML header of the page put the following code:
external_url: 'http://mywebsite.com/myurl'
(do change the URL above)
This will allow you to keep your intro and pictures in the blog, and redirect to the external URL upon visiting that page within Grav.

ganar
- 627
- 8
- 17