Forum for discussing general topics related to Couch.
7 posts Page 1 of 1
hi all..

im looking to modify the admin panel. here is the case.

i have a template called must_see.php. this template is clonable.
Code: Select all
<cms:template title='Attraction' clonable='1'>
   <cms:editable name='must_see_content' type='richtext' />
   <cms:editable name='opening_hours' type='text' />
   <cms:editable name='banner_image'  type='image' />
   <cms:editable name='main_image'  type='image' />
   <cms:editable name='image1'  type='image' />
   <cms:editable name='image2'  type='image' />
   <cms:editable name='image3'  type='image' />
   
   <cms:folder name="must-see" title="Must See" />
   <cms:folder name="ms-sm" title="Must See and Street Markets" />
   <cms:folder name="ms-sff" title="Must See and Singapore For Free" />
   <cms:folder name="singapore-for-free" title="Singapore For Free" />
   <cms:folder name="street-markets" title="Street-Markets" />
</cms:template>
<cms:if k_is_page >


i wanted to list the pages in different links.
so i have three different page. i manage to list it, however in the admin panel, all the 3 page are listed there which i do not want too as there is no editable region in the pages.

in the pages to list the pages,
[code]<?php require_once('admin/cms.php') ;?>/code]
without the code aboves, it wont list the pages.

any help is appreciated.
thanks alot

ps: sorry for my english if it is confusing.

Attachments

Hi,

You can add hidden='1' to a template's definition to skip listing it in the sidebar e.g.
<cms:template title='Street markets' hidden='1'>

Please note that the template will NOT be hidden from the super-admin (i.e. you) - it will appear with a line crossing through its name. The site owner, however, won't see it at all.

Hope this helps.
hi kk, thanks for your reply.

i have added the code, but it is still doenst work.

Code: Select all
<?php require_once('admin/cms.php') ;?>
<cms:template title='Street markets' hidden='1'>
</cms:template>


this is the code when i list.
Code: Select all
<cms:pages masterpage='must_see.php' folder="street-markets, ms-sm">
      <div class="grid_6">
           <!--start archivetour-->
            <div class="archivetour yellow fade-left animate1">
               
                <!--left-->
                <div class="leftarchivetour">
               
                    <a href="<cms:show k_page_link />"><img alt="" class="imgleftarchivetour opacity" src="<cms:show main_image />"></a>
               
                    <div class="pricetitleleftarchivetour">
                       
                       
                        <p class="titleleftarchivetour"><cms:show opening_hours /></p>
                    </div>


another qn, can we actually group some link at the side bar?
thanks for the time.

:)
Billy,

I am not sure now if I understood your original question correctly.

I thought you wanted to hide 'Singapore-for-free.php' and 'street-markets.php' templates from admin sidebar.

To do so you need to add
<cms:template hidden='1'></cms:template>
to both these templates.
Then, as is the norm with Couch, you need to access both these templates as super-admin via your browser.

Coming back to the admin-panel (as super-admin) you'll see both the names with a line across them.
If you login as normal admin, you'll see that both the templates have disappeared.

I cannot see what the
<cms:pages masterpage='must_see.php' folder="street-markets, ms-sm">
that you mentioned has to do with hiding these templates.

Can you please clarify? Have I misunderstood the problem completely?
hi kk,

thanks alot again for the reply.

oh yes, i finally could hide it. the problem was in the couch database. there is already entry there when i didnt spesify hidden. so i deleted entry from couch database, and it works now.

another question i have is,

could i group some of the link?

Attachments

I am glad you could resolve the problem, Billy :)

Replying to your other question
could i group some of the link?

I'm sorry but that cannot be done in the current version.
That facility is planned for the next version, though.
wow!! great! looking forward for the next version!!
7 posts Page 1 of 1
cron