Displaying parts of the admin interface

Hi :slight_smile:


I'm trying to create a way for editors to edit the page contents of an asset listing. Since I doubt I can isolate the asset ID for this asset in an asset listing, I've decided to display the Display Formats screen instead, and let them click through. To get to that screen, you need to use asset_ei_screen=formats, and this is only exposed to the admin interface at the moment.



However, I'd like the asset tree to be hidden in this situation. I vaguely remember someone saying this is possible. I've found the following elements of the admin interface:



SQ_BACKEND_PAGE=header

SQ_BACKEND_PAGE=sidenav

SQ_BACKEND_PAGE=resizer

SQ_BACKEND_PAGE=main

SQ_BACKEND_PAGE=frames



I would have thought that SQ_BACKEND_PAGE=main would be what I wanted, but it defaults back to SQ_BACKEND_PAGE=frames.



Any help would be appreciated :slight_smile:

Tamara

The GET variable you need to hide the asset map is hide_frames=1; this will hide both the top header and asset map - the latter will then pop out if required by an asset finder and hide itself again once an asset is selected.


To expose the Display Formats screen, it is likely that you would need to set up a custom Simple Edit Layout, and attach it to the screen in the Layout Manager (inside the System Administration folder) to expose it, as I believe it does not expose itself automatically.



Creating a layout using a %formats-% layout keyword (along with a %commit_button% keyword somewhere) and attaching it to the Asset Listing Page's Formats screen should work in 3.12 (I have got this to work on my test 3.12 system). Then you should be able to access it using asset_ei_screen=formats as you suggest.



Hope this helps.

Thanks Luke :slight_smile:


We're using 3.10.5, and displaying the formats screen as you suggested works, but the issue now is that when I try to click through to the Page Contents, it doesn't pass the page contents asset id, but the id of the current asset. And asset listing don't have a contents screen, so I can't define a layout for it. Here are screenshots of the process:











Here's the query string it should pass (this is from the admin interface):



?SQ_BACKEND_PAGE=main&backend_section=am&am_section=edit_asset&assetid=48119&asset_ei_screen=contents



This includes the asset id of the Page contents asset under the asset listing.



Is there a fix for this?



Thanks again,

Tamara

[quote]Is there a fix for this?
[right][post=“14654”]<{POST_SNAPBACK}>[/post][/right][/quote]



No, appears not; I can see it behaving the same way in 3.12 and 3.13 - I suggest that you submit a bug so that it can be investigated by one of our developer team as soon as it is possible.



It should be a reasonably simple fix to get it to redirect to the format bodycopy in Simple Edit, however be aware that it is likely that you would lose your context; ie. it may not be easy to return to the Asset Listing Page to select another bodycopy without reloading the simple edit frames or some implementation trickery perhaps (maybe someone from Implementation would have some ideas, assuming that it were possible, which it would be after a fix).

Thanks for the help :slight_smile: