To create a link to another page in the project is straightforward using the “Set Link” dropdown, and selecting the desired project page (see screenshot).
However, I would like to add#filter=something to the end of the link.
For example, if the URL of the project page is:
www.domain.com/page-2
then I would like to ask RW to add the hash-tag to the end of the URL automatically; i.e. the link I want is:
www.domain.com/page-2/#filter=something
Now I know I could enter this as a URL directly via the Set Link dropdown. But, this has the disadvantage that if I subsequently republish the site at another domain (which will certainly happen as I publish an in-development site to a different address than the final version), then I have to manually correct every URL.
I would be grateful for any suggestions on how to more elegantly solve this problem!
Are you trying to send them to an anchor point on another page (#section2) i.e.
<div id=“section2”>Section2 of the page</div>
…
<a href="#section2">Jump to section 2</a>
Or, are you trying to pass HTML data? i.e.
< element data-*=" somevalue ">
If you need this same kind of info for email:
eMail HTML Stuff
Here’s how you do it.
We’ll use thescreensavers@techtv.com as our example email address.
• Subject field: To automatically fill in the subject field, add the code in red to the end of your email address in the mailto link.
Or, are you trying to pass HTML data? i.e.
< element data-*=" somevalue ">
Yes, this is what I am trying to do. In particular, I have a stack called Filter (from Yabdab) running on a page. If I call that page, but add the hash-tag #filter=cats to the page URL, then the Filter will automatically filter only those items tagged with cats.
also you can use relative urls… i.e. …/mypage
Great, thanks. I think that’s essentially what I need. To be clear, if the page called “Talks” is page 2 in the RW Pages list, I should use the relative URL
Did you try adding a custom data attribute to the page link?
In your image above, select the page, click the + to add a data attribute, add the name and value.