Roych Posted January 12, 2018 Posted January 12, 2018 Hello I need some help with redirecting. I have create a template called (redirect) and AssistedURL field called (redirect_link) for redirecting a page if necessary. In template I've added: <?php if($page->redirect_link) $session->redirect($page->redirect_link); ?> redirect is working, but is it possible to create a link non clickable also, maybe with placing # for link? If I place # now it gives the whole link of the site with /# at the end and gives blank page. So placing (#) would disable a link totaly or something. Hope u understand what I mean Thank you R
Roych Posted January 12, 2018 Author Posted January 12, 2018 14 minutes ago, rick said: Here is a good read. Thank you for answer, but not really sure how could this help me It's just sometimes the parent menu need's to be unclickable but not sure how to do that from my code above as I'm not a coder, so any help is appreciated. Thank you R
rick Posted January 12, 2018 Posted January 12, 2018 Hi @Roych, I'm not quite sure I understand. When you say you have a field for redirecting if necessary, what does necessary mean? And a non-clickable link is just text. Can you expand your requirements further so I understand exactly what you are trying to accomplish please? Maybe a screen shot of a similar interface?
Roych Posted January 12, 2018 Author Posted January 12, 2018 It is for main menu and sometimes a link in main menu has to be redirected to external link or non clickable. Sometimes parrent menu has to be non clickable but childrens normal. So the code above is working great for internal and external redirecting (linking) all I need is the posibillity to make it non cliickable also, so maybe with # or something. So for that kind of page I would give it a redirect template and just enter the url or #. Don't have any screenshot of something similar Hope u understand ...
Roych Posted January 12, 2018 Author Posted January 12, 2018 Im using MarkupSimpleNavigation. I was hoping that there is some if-else possibility with my upper code, so when # is pasted then the link is disabled. Not a coder, that is why I asked here. Thank you R
rick Posted January 12, 2018 Posted January 12, 2018 Don't worry about whether you are a coder or not. This community is full of people that are glad to help you with whatever issues you may have. We just need more information to do so. Post the code you have to work with and someone here will be along shortly to help you get it sorted.
flydev Posted January 13, 2018 Posted January 13, 2018 if you have a little courage (and if anyone else is interested), I can write you a little tutorial but you must put your hands dirty ?, let me know. 1
Roych Posted January 13, 2018 Author Posted January 13, 2018 3 hours ago, flydev said: if you have a little courage (and if anyone else is interested), I can write you a little tutorial but you must put your hands dirty ?, let me know. Sure, what do you have in mind? R
flydev Posted January 13, 2018 Posted January 13, 2018 You will end up with a PHP function (written by @mindplay.dk) ,two templates and pages which will define your menu. I will write the tutorial a bit later in the afternoon. 2
rick Posted January 13, 2018 Posted January 13, 2018 Thanks @flydev, I know this will be very helpful to others as well! 1
Roych Posted January 17, 2018 Author Posted January 17, 2018 On 13. 1. 2018 at 1:02 PM, flydev said: You will end up with a PHP function (written by @mindplay.dk) ,two templates and pages which will define your menu. I will write the tutorial a bit later in the afternoon. I know you are probably very busy but still. Any update on this maybe? Thank you R
flydev Posted January 17, 2018 Posted January 17, 2018 Sorry, I totally missed it ! Will try to find the time asap 3
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now