We currently use some banners on our website at the right side of the page which are clickable. Their targets are all pages of the same (modx) website. Right now we simply enter [~P-ID~] into a our url tv and use it in the template’s a href target.
For things like this it would be really great to have a TV which allows the Content editor to choose only from the internal documents by utilizing a dropdown style input and have it generate the hyperlinks accordingly.
Is it possible to add a Template Variable with a dropdown menu which shows internal links of a website? Sometimes I find hard to explain to customers that they have to choose the Resource ID.
Edit: Shall I use TinyMCE for this?
-
☆ A M B ☆
- 3,141 Posts
You just brought a four year old topic back to life, wow o.o
In Revolution you can use the resource list TV.
In both versions you can use a @SELECT TV to list the resources.
TinyMCE in both branches allows you to select a resource. The Evolution one has a dropdown with all resources, the Revolution one features a "search" field where you enter the resources’ title and select one.
-
☆ A M B ☆
- 3,141 Posts
@FILE loads the content of the file, @DOCUMENT the content of a resource, @CHUNK the content of a chunk, @SELECT is a MySQL query, @EVAL is a php eval() call for complex stuff, @DIRECTORY lists the files in a certain directory.