Problems, need help? Have a tip or advice? Post it here.
7 posts Page 1 of 1
Two similar issues in the admin panel:

1. In my admin panel, some of the pages listed in the left-hand column contain fields for text entry that no longer actually exist in those pages. (I had previously put some editable tags in those pages, but subsequently deleted them.)

2. Similarly, there are some pages listed in the left-hand column that have no editable areas at all, and the page still exists there in the admin panel, as if they contain tags. I'd like to remove any pages that don't have anything in them to edit.

Is there a way to clean things up in the above two cases?
Could you post a screenshot?
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
Thanks, trendoman.

Attached is a screen shot of the admin panel as it stands currently.

TWO THINGS:

1. THIS ONE SOLVED ITSELF TODAY. In the two pages that used to have editable tags in them, but that still acted (in the admin panel) as though those tags were still there ... Today, those pages showed the non-existent tags properly (in red), with the message asking if I wanted to delete them. I did so, and now, under these two pages, it simply says "No Editable Regions defined." That's great.

Why? I'm guessing it might have to do with using the "View site" link (upper right corner of the admin panel) to view the site, rather than just refreshing my web pages in their existing browser windows.

In particular, I'm wondering whether Firefox's "New Private Window" option may be making web page visits invisible to Couch in some respects. Maybe? And by using the "View Site" link from within the Admin Panel, I'm ensuring that Couch sees my web page visit and can then update the admin panel data appropriately. This may not be the case -- just speculating.

2. THIS ONE STILL A MYSTERY TO ME. In the attached screen shot, there is a page called "Global Settings" that remains there even though there is no longer any such file or template referred to as "Global Settings" anywhere in the hosting space, nor in Couch's snippets folder.

Thanks.

Attachments

@couchclass,

1. There is a little nuance involved in deleting editable regions - Couch will mark a region as deleted *only* when you visit the template (as super-admin of course) in its *page-view*.

That page-view thing is crucial. One easy way of doing it is to click the magnifying glass icon next to any cloned page.
Please try this and you should find that the delete happens as expected.

2. This one is strange. Normally when a template s physically deleted (and there are no existing cloned pages of it around), Couch should prompt you to remove it from the admin-panel also.

Perhaps the template is still present??
Try hovering your mouse over the global settings template in sidebar. That should show you the name of the physical template behind it (which will also show the sub-folders if the template is not in root). Please make sure that the physical template has indeed been removed from the indicated location.

Hope it helps.
2. This one is strange. Normally when a template s physically deleted (and there are no existing cloned pages of it around), Couch should prompt you to remove it from the admin-panel also.

Perhaps the template is still present??
Try hovering your mouse over the global settings template in sidebar. That should show you the name of the physical template behind it (which will also show the sub-folders if the template is not in root). Please make sure that the physical template has indeed been removed from the indicated location.


Thanks, KK.

The template is still present (the page's file name is "header.php"), because this template is a server-side include that all my pages use, but the "Global Settings" tags that used to be inside that SSI are gone. Here's the only Couch code inside the file:

Code: Select all
<cms:pages masterpage='marquee_globals.php' >
   <cms:show_repeatable 'marquee_events' >
      <cms:excerptHTML count='150' ignore='br'>
      <span class="bold">
      <cms:show marquee_event_datetime />: </span><cms:show marquee_event_description />, <cms:show marquee_event_venue /> &hellip;
      </cms:excerptHTML>
   </cms:show_repeatable>
</cms:pages>


The masterpage to which the code above refers (called 'marquee_globals.php') exists, and here is the full content of that masterpage's file:

Code: Select all
<cms:template title='Marquee Contents' executable='0'>
<cms:repeatable name='marquee_events' >
    <cms:editable name='marquee_event_datetime' label="Date and Time" type='text' />
    <cms:editable name='marquee_event_description' label="Event Name or Description" type='nicedit' />
    <cms:editable name='marquee_event_venue' label="Event Location" type='nicedit' />
</cms:repeatable>
</cms:template>
<?php COUCH::invoke(); ?>


But a "Global Settings" template still exists in the Admin Panel, with "No editable regions defined."

(I've just upgraded to Couch 2.0, by the way.)

Does any of these details help? In the end, having this seemingly non-existent file there doesn't hurt anything. Just a simplicity issue.
Since your SSI is not a 'template' anymore for couchcms, try to rename it temporarily, then visit admin panel and you'll see that once file is not available with the previous name, Couch would ask to delete it. Done that, rename your file back and voila!.
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
OMG! Worked like a charm!

Trendoman, thank you!
7 posts Page 1 of 1