• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: LISE, adapt item template for enduser
PostPosted: Sun Dec 30, 2018 6:34 pm 
Offline
Power Poster
Power Poster
User avatar

Joined: Sat Jul 07, 2007 9:22 am
Posts: 736
Location: Almelo, The Netherlands
I want to adapt the item template for my users.

At the begin of the template the user is given the following options:
* Alias:
* Choose a custom URL for this item or accept the generated one:
* Use time control:


I don't want the user to fill out these things. Can I just remove the following code in edititem.tpl, or is it possible that I will create an Error?

Code:
    <div class="pageoverflow">
      <p class="pagetext">{$mod->ModLang('alias')}:</p>{$alias|default:''}
      <p class="pageinput">{$input_alias}</p>
    </div>

    <div class="pageoverflow">
      <p class="pagetext">{$mod->ModLang('url')}:</p>{$url|default:''}
      <p class="pageinput">{$input_url}</p>
    </div>

    <div class="pageoverflow">
      <p class="pagetext">{$mod->ModLang('time_control')}:</p>
      <p class="pageinput">{$input_time_control}</p>
    </div>

    <div id="expiryinfo"{if $use_time_control != true} style="display:none;"{/if}>
      <div class="pageoverflow">
        <p class="pagetext">{$mod->ModLang('start_time')}:</p>
        <p class="pageinput">{$input_start_time}</p>
      </div>

      <div class="pageoverflow">
        <p class="pagetext">{$mod->ModLang('end_time')}:</p>
        <p class="pageinput">{$input_end_time}</p>
      </div>
    </div>

_________________
Waarom zou het direct goed moeten gaan? Dan is alle lol weg ...


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: LISE, adapt item template for enduser
PostPosted: Wed Jan 02, 2019 4:45 pm 
Offline
Dev Team Member
Dev Team Member

Joined: Mon Nov 28, 2011 9:29 am
Posts: 3037
Location: The Netherlands
Please also read this part: https://docs.cmsmadesimple.org/customiz ... -templates but note that if I remember correctly LISE doesn't use the /assets/ directory yet. So you might need to create the module_custom folder in the root.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: LISE, adapt item template for enduser
PostPosted: Wed Jan 02, 2019 5:06 pm 
Online
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Feb 25, 2009 4:25 am
Posts: 544
Location: Victoria, BC
I don't think you can remove them, particularly alias, but you could probably hide them with css.

_________________
Not getting the answer you need? CMSMS support options


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: LISE, adapt item template for enduser
PostPosted: Thu Jan 03, 2019 2:39 am 
Offline
Power Poster
Power Poster

Joined: Sat Nov 25, 2006 3:39 pm
Posts: 337
Location: Copenhagen, Denmark
Yes, as velden says, you have to use module_custom folder in root for the LISE module (module_custom/Instance name/templates/edititem.tpl) for your template edits.

And as DIGI3 says use CSS to hide a particular field.
An example from one of my own templates:
Code:
    <div class="pageoverflow" style="display: none;">
      <p class="pagetext">{$mod->ModLang('alias')}:</p>{$alias|default:''}
      <p class="pageinput">{$input_alias}</p>
    </div>

    <div class="pageoverflow" style="display: none;">
      <p class="pagetext">{$mod->ModLang('url')}:</p>{$url|default:''}
      <p class="pageinput">{$input_url}</p>
    </div>

    <div class="pageoverflow" style="display: none;">
      <p class="pagetext">{$mod->ModLang('time_control')}:</p>
      <p class="pageinput">{$input_time_control}</p>
    </div>

    <div id="expiryinfo"{if $use_time_control != true} style="display:none;"{/if}>
      <div class="pageoverflow">
        <p class="pagetext">{$mod->ModLang('start_time')}:</p>
        <p class="pageinput">{$input_start_time}</p>
      </div>


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: LISE, adapt item template for enduser
PostPosted: Sat Jan 05, 2019 7:44 am 
Offline
Power Poster
Power Poster
User avatar

Joined: Sat Jul 07, 2007 9:22 am
Posts: 736
Location: Almelo, The Netherlands
Thanks, this will help a lot!

_________________
Waarom zou het direct goed moeten gaan? Dan is alle lol weg ...


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: bing


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
A2 Hosting