[request] Tempcode in Menu Link Field
Posted
#3370
(In Topic #664)
The issue is, the link is tailored to their username, and without being able to add a $USERNAME in the LINK field of a menu item, I can't accomplish this.
Can we add functionality to use Tempcode in the LINK field when adding a menu item? This would also be useful for users who'd like to specify a full URL instead of a page and utilize $BASE_URL.
Posted
I don't really follow the logic of the problem I'm afraid.
Surely anything you could dynamically add into a menu link, you could also dynamically add into the page itself?
Even if you need to open up the page in multiple different modes, you could have a static parameter to indicate which mode, and then the page itself would dynamically invoke whatever different variables are needed for that particular mode.
Posted
Posted
What I'd recommend is putting a place-holder in the URL, then modifying a template to substitute that place-holder with Tempcode.
Edit MENU_LINK_PROPERTIES.tpl.
Replace {URL*} with something like {$REPLACE*,<username>,{$USERNAME},{URL}}
Empty the template cache.
Make your menu link use <username>.
Posted
It's more of a custom page than an entire custom site for the users. I create it because I couldn't figure out how to use Demonstratr. It is offered free to my members.
Each custom web page uses values from multiple CPF's of the user referenced in the URL and is entirely dynamic in the sense that it can automatically generate itself by displaying CPF values of any user that has been referenced in the URL. If no user is referenced then a default page is shown.
For example:
A random user goes to mysite.com/?q=fudge
The page references the profile of user fudge and uses custom profile fields to populate custom items on the page, such as a custom header or background image (assuming the user added this info to their profile).
To make a long story short, I want my members to have easy access to their own page by being able to click on their web page URL from within the navigation menu. But the link is different for each member who views it. Basically I'd need to be able to use Guest inside the URL field of a menu item.
This would also allow them to easily copy and paste the link in case they want to give their friends the URL.
Also, another question:
These custom pages are actually in their own zone. Users have to reference mysite.com/z/?q=fudge to get there. Is there a way to add a zone exception to closing the site? So when the site is closed people can still access the /z/ zone? This would be the only exception I'd want. I just don't want members to not have access to their custom page if i'm closing the site temporarily.
Posted
Regarding closing the site - I suggest just opening the site then using zone permissions. It's permissions which are granular.
1 guest and 0 members have recently viewed this.
