HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Theme Editor Preview am I simply confused or is it a bug?

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#106085 (In Topic #20695)
Avatar

Fan in action

Using Admin zone/Style/Themes and then Edit theme ...... and then Preview (edit or not). A new window is opened which is identical except that the rendering options are unavailable.

It doesn't appear to be a preview at all and is quite confusing. Is this as intended? If so then perhaps an explanation of how we end users are meant to use this feature would be useful.

It's not installation specific. I have two installations (running on windows box)and am working on/involved with a third, where I detected the problem (flwg on IBM 3650 I think). Checked this on both of mine which are largely unmodified, so this rules out mods/templates that I believe are perhaps V10.

I could see that there is the potential for failures/extra work if using Save and Stay. You check realise changes are made and the make them in the wrong window tab. Perhaps disabling save/save and stay in the preview would prevent this.

Regards, Mike.
Back to the top
 
Posted
Rating:
#106091
Avatar

The preview there is nothing to do with current or future changes, it's simply a way to view the site as if that particular theme were active. In your case, it probably already is.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#106099
Avatar

Fan in action

Chris I've not sure that you understood the issue I was trying to explain. I ruled out it being issues due to the nature of the official site being developed as I checked two pretty much standard sites. However, I don't think that I explained the problem that well or with enough detail.

The issue is that the preview screen, at times, has "Preview, Save and Start and Save" buttons. I think "At times" is when editing "module invoked" code via admin zone/styles/themes (the only way to use ocp to edit them).

As an example, screen shots below, I went into Admin Zones/Style/Themes, selected Edit Templates for the appropriate theme and then selected, from FORM_PAGE_FLWGAC.tpl from the list of files and then clicked on the Chose button (first screen shot) and then Selected Preview.

The new window, the preview, is virtually identical to the screen on which Preview was clicked. The only difference is that the preview Footer doesn't have the Screen Rendering Selection Dropdown  and that the copyright info and the navigation links move horizontally. Unless you scroll down to the bottom the screens appear identical.

This wouldn't be an issue just an annoyance if it weren't for the fact that you now have two very similar windows with functional Save and Stay and Save buttons. Do another edit preview and you have a third near identical window and perhaps so on. You might end up getting mixed up with which is the latest tab and inadvertently save old/intermediate code.

Perhaps it would be safer if, in the situation of editing a module invoked template file, the preview button were disabled.

Any here's two screenshots one before hitting preview and the other showing the preview.



Regards, Mike.
Back to the top
 
Posted
Rating:
#106162
Avatar

Ok, I understand now.

There is a small bug here that I'll fix.

You're editing a non-standard template which has no preview defined, which means the button is broken. The button shouldn't show.

For standard templates it invokes the screen preview that covers the particular template, but incorporating any live changes you're making in the editor. The screen previews are a Lorem Ipsum sandbox that works regardless of the content on the actual website.

It's a very useful feature but it only works when we have coded up screen previews, which is not the case for custom templates.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#106163
Avatar

Fan in action

Thanks Chris and sorry for not fully explaining initially. Still on a pretty steep learning curve regarding what is and is not (as can be seen in my post re IS_IN_GROUP/IF_IN_GROUP). It's been 6 nearly 7 years since my last delves into ocP.

Regards, Mike.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: