Absolute link publishing within JS file output
Hi there,
Have a quick question, something easy I'm sure but I'm overlooking. I'm writing a javascript file, which is generated from content entered into a data-definition block. (see attached). To have the Js file output work, and be usable within Cascade, I'm using the
<!--#cascade-skip--><system-region name="DEFAULT"/><!--#cascade-skip--> as the template, and the format (attached) to output the following javascript.
This data definition / format combo works well for what i need it to do (once its published that is) however in Cascade, it doesn't play nice.
I tried using the link attribute from my page chooser, however when the script is output, then I get the site:/// which doesn't work for either.
Its like the interpreter is ignoring the link re-writing. Any ideas are always appreciated. Thanks so much!
Brendon
- data-definition.txt 12 KB
- format.txt 1.1 KB
Discussions are closed to public comments.
If you need help with Cascade CMS please
start a new discussion.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by Ryan Griffith on 08 Jul, 2015 07:44 PM
Hi Brendon,
Sounds as though the links are not being tracked within Cascade. Have you tried surrounding the value of the
href
attribute with a[system-asset]
pseudo tag? This will force Cascade to track the link.Please let me know if you have any questions.
Thanks!
2 Posted by birwin on 08 Jul, 2015 07:48 PM
I knew it was something small.
Brilliant. Thanks!
3 Posted by Ryan Griffith on 08 Jul, 2015 07:51 PM
Glad to hear that did the trick, Brendon.
I'm going to go ahead and close this discussion, please feel free to comment or reply to re-open if you have any additional questions.
Have a great day!
Ryan Griffith closed this discussion on 08 Jul, 2015 07:51 PM.