Forum Discussion

ktharris's avatar
ktharris
Advisor
11 years ago

Unique text string for same community component

Hi there,

 

We use the Ideation solution for two different things: Bug Reports & Ideas. Is it possible to have different text strings for each of these sections in the text editor? For example, on the "Bug Reports" section, I'd want the post button to say "Post an Issue" instead of "Post an Idea."

 

Hopefully I explained that clearly! Is this possible, and how do you do it?

 

Thanks! :)

  • @ktharris - I don't think it is possible to have two different text string for one component in the text editor, but here is a bit of work around using which you can achieve this.

     

    You need to create a custom post button for this using following code:

     

    <#if coreNode.id == "BugReports"> <!-- or whatever the ID of your Bug Reports board is-->
    	<div class="opt_btn"><a href="/t5/forums/postpage/board-id/${coreNode.id}">Bug Reports</a></div>
    <#else> <!-- if you need to have more unique post buttons for more specific boards, you can continue using elseif using boards id-->
    	<div class="opt_btn"><a href="/t5/forums/postpage/board-id/${coreNode.id}">Post an Issue</a></div>
    </#if>

    Also, don't forget to hide/ remove the default post buttong using CSS.

     

    Here is the implementation of this, same post button but different text for both.

     

    Post New Discussion - http://community.optimizely.com/t5/Using-Optimizely/bd-p/using-optimizely 

    Post New Job - http://community.optimizely.com/t5/Job-Opportunities/bd-p/JobOpportunities

     

    I hope this helps.

  • @ktharris - I don't think it is possible to have two different text string for one component in the text editor, but here is a bit of work around using which you can achieve this.

     

    You need to create a custom post button for this using following code:

     

    <#if coreNode.id == "BugReports"> <!-- or whatever the ID of your Bug Reports board is-->
    	<div class="opt_btn"><a href="/t5/forums/postpage/board-id/${coreNode.id}">Bug Reports</a></div>
    <#else> <!-- if you need to have more unique post buttons for more specific boards, you can continue using elseif using boards id-->
    	<div class="opt_btn"><a href="/t5/forums/postpage/board-id/${coreNode.id}">Post an Issue</a></div>
    </#if>

    Also, don't forget to hide/ remove the default post buttong using CSS.

     

    Here is the implementation of this, same post button but different text for both.

     

    Post New Discussion - http://community.optimizely.com/t5/Using-Optimizely/bd-p/using-optimizely 

    Post New Job - http://community.optimizely.com/t5/Job-Opportunities/bd-p/JobOpportunities

     

    I hope this helps.