Copy link to clipboard
Copied
Hey!
I am using the slider that came with a default BC template (I believe it is the nivo slider), and it gives me options for Item Name, URL, & Image.
The URL that the slider links to currently has to be relative to the web app's directory, so for example I can only link to mydomain.com/slider/somepage when really I just want to link to mydomain.com/somepage.
Is there a way around this?
It looks like the template you are using uses Web Apps for the slider and the layout controlling that slider simply lists the {tag_image} and that tag wraps the URL of the web app detail view around the image. There are two ways around this...
The easiest, most hands-off way is to just add 301 redirects to the content you really want. Let's say the slider links to "/slider/somepage" which is the detail view of the web app item but you want it to goto some other content instead...
Copy link to clipboard
Copied
What if you try using a URL that references your root... for instance in the URL field if you wanted mydomain.com/somepage just use "/somepage" or if you wanted mydomain.com/somefolder/somepage just use "/somefolder/somepage"
Copy link to clipboard
Copied
Already tried it, as well as the other tricks like ../ and so on. It just appends exactly whatever I put into the URL field to 'mydomain.com/slider/', so if I put 'somepage' it links to mydomain.com/slider/somepage and if I put '/somepage' it links to mydomain.com/slider//somepage (with two slashes).
I could rename the slider's web app URL from 'slider' to 'pages' or something similar, then actually create a directory called 'pages' and move 'somepage', etc into this folder. It just is such a sloppy workaround.
Also I am actually using AnythingSlider. It came with the BusinessCatalyst Adora template.
Copy link to clipboard
Copied
It looks like the template you are using uses Web Apps for the slider and the layout controlling that slider simply lists the {tag_image} and that tag wraps the URL of the web app detail view around the image. There are two ways around this...
The easiest, most hands-off way is to just add 301 redirects to the content you really want. Let's say the slider links to "/slider/somepage" which is the detail view of the web app item but you want it to goto some other content instead...
The caveat is that everytime you add a new slider you must add a 301 Redirect again but you don't have to muck with the web app layout much. This additional step might be too much for a client to remember/do each time so there's another way.
The second way is to add a new field to your Carousel Web App and to edit the layout of the Carousel List View to include the new URL field we add.
<li>{tag_image}</li>
<li><a href="{tag_contenturl}">{tag_image_nolink}</a></li>
Good luck. Let me know how it goes.