We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Allow braces in links

Development and Programming

Billy Patel's avatar
Billy Patel
284 posts
16 years ago
Billy Patel's avatar Billy Patel

I am using moxiecode filemanager to upload images, part of the setup is to have a link like so:

{if logged_in}
    {exp:member:custom_profile_data}
        {if member_groupmembership == "CONTENT"}
            <a>[Upload file(s)]</a>
        {/if}
    {/exp:member:custom_profile_data}
{/if}

(for some reason it wont allow me to enter the link… it should have: onclick=”mcFileManager.upload({path : '{0}/content/’});” href=”#”)

As you can see, the link has a {0}, this is required for filemanager to set the upload path.

Moved to Modules by Moderator

What is happening is that it is instead putting my name which i believe is being pulled from the profile data tag.

The link ends up as: onclick=”mcFileManager.upload({path : 'MY_NAME/content/'});” href=”#”

Ho do i stop it from parsing {0}. Escaping it works but then breaks the link. e.g. {0}

       
Sue Crocker's avatar
Sue Crocker
26,054 posts
16 years ago
Sue Crocker's avatar Sue Crocker

Bohboh, have you posted this in the Solspace forums? You’re using a third party uploader, and a third party module. In the mean time, I’ll move this to the Modules forum.

       
Billy Patel's avatar
Billy Patel
284 posts
16 years ago
Billy Patel's avatar Billy Patel

Am i missing something here? What has this to do with solspace? OR any third party module? The only third party tool is the filemanager but that isnt the issue here, its to do with EE parsing {0} inside the exp:member:custom_profile_data tag.

       
Sue Crocker's avatar
Sue Crocker
26,054 posts
16 years ago
Sue Crocker's avatar Sue Crocker

My apologies. I’ll move it back.

       
Billy Patel's avatar
Billy Patel
284 posts
16 years ago
Billy Patel's avatar Billy Patel

Great, any thoughts on how to stop it parsing {0} ?

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.