View Issue Details

This issue affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
10477Bug reportspublic2016-03-05 10:32
ReporterDenisChenu Assigned ToLouisGac 
PrioritynormalSeverityminor 
Status closedResolutionwon't fix 
Product Version2.50.x 
Summary10477: Forced list for some "button"
Description

{SAVE_LINKS} and {CLEARALL_LINKS} are replacved by

  • The link
  • this force template dev to use it only in list.
    I think it's not the needed system

    Steps To Reproduce

    Look at https://github.com/LimeSurvey/LimeSurvey/blob/master/templates/default/views/startpage.pstpl#L31

    ul
    {SAVE_LINKS}
    {CLEARALL_LINKS}
    /ul

    Exmplain by https://github.com/LimeSurvey/LimeSurvey/blob/master/application/helpers/replacements_helper.php#L409

    Additional Information

    Another template can want {SAVE_LINKS} outside of a list : we force to use it in list.

    There are HTML5 issue too in public list:
    <div class="navbar-collapse collapse" id="navbar">
    <ul class="nav navbar-nav">

    <ul class="nav navbar-nav navbar-right">

    </ul>

    </div>

    In previous template we can use Expression manager inside template.pstpl to add or not a li.

    TagsNo tags attached.
    Bug heat4
    Complete LimeSurvey version number (& build)
    I will donate to the project if issue is resolved
    Browser
    Database type & version
    Server OS (if known)
    Webserver software & version (if known)
    PHP Version
    Git branch / Pull Request URL

    Relationships

    related to 10562 closedc_schmitz Question index highlighting required questions missing. 

    Users monitoring this issue

    There are no users monitoring this issue.

    Activities

    DenisChenu

    DenisChenu

    2016-03-04 16:00

    developer   ~35978

    @Louis : can we add the li only in template, and don't add it in core.

    LouisGac

    LouisGac

    2016-03-04 16:17

    developer   ~35980

    Last edited: 2016-03-04 16:17

    Denis, my original code was just removing the old links, to replace them by a bootstrap nav-bar version. So it was working fine and easy.

    But, many people complained about it, and asked to leave also the original code. So I also leave the possibility to use the old keywords for replacement.

    So, in 2.5, if you prefer to use the old keywords for those link : you can. It will provide you the same HTML as before.

    DenisChenu

    DenisChenu

    2016-03-04 16:19

    developer   ~35981

    Hi,

    Yes, i'm the one who ask old code : more accessibility, no js needed etc ....

    OK, then adding a element with specific template usage ?

    LouisGac

    LouisGac

    2016-03-04 16:29

    developer   ~35982

    Last edited: 2016-03-04 16:30

    you can just use the old keywords to get the old HTML links.
    A lot of monthes ago, I asked in a team meeting if anyone wanted more replacement keywords.

    So, don't hesitate to ask for more : I think that much more HTML code could be let to the template side. (and of course, letting all the old replacement keywords)

    DenisChenu

    DenisChenu

    2016-03-05 10:31

    developer   ~35987

    Hi Louis : i doin't want more (and more and more) core replacement keywords.
    Becasue it's a never ending story .

    What i really want it's a Core Replavement event for plugin (and maybe template can use plugin event).

    Adding core replacement is reamlly a never ending story :)

    I close this. But still : please remind to don't li : div/span are OK, but li is specific (like td/tr or p).

    Issue History

    Date Modified Username Field Change
    2016-02-16 13:58 DenisChenu New Issue
    2016-02-29 11:18 DenisChenu Relationship added related to 10562
    2016-02-29 11:32 DenisChenu Steps to Reproduce Updated
    2016-03-04 15:59 DenisChenu Assigned To => LouisGac
    2016-03-04 15:59 DenisChenu Status new => assigned
    2016-03-04 16:00 DenisChenu Note Added: 35978
    2016-03-04 16:17 LouisGac Note Added: 35980
    2016-03-04 16:17 LouisGac Note Edited: 35980
    2016-03-04 16:19 DenisChenu Note Added: 35981
    2016-03-04 16:29 LouisGac Note Added: 35982
    2016-03-04 16:30 LouisGac Note Edited: 35982
    2016-03-05 10:31 DenisChenu Note Added: 35987
    2016-03-05 10:32 DenisChenu Status assigned => closed
    2016-03-05 10:32 DenisChenu Resolution open => won't fix
    2026-11-20 10:33 c_schmitz Category Templates => (No Category)