#130 - Foolproof content embedding

This is a spacer post for a website comment topic. The content this topic relates to: #130 - Foolproof content embedding
In addition, I would like to see the rendering model enhanced. The current model of blocks, pages, and scripts, is getting squeezed, as scripts or pages may act as frames, overlays, popups, or AJAX results for direct embedding. We have all the tech we need but it could use tidying up and generalising, so we can flexibilise how we call stuff up and introduce smarter responsivity.

1) Make more Composr screens consist of AJAX blocks, hard-code less into specific modules, make templates glue it together. E.g. on the filedump screen, the actual file dump listing would be a block embedded into the page template. i.e. most of the page code is moved into a block, and the page itself becomes mostly glue.
2) Use the new 'HTML5' 'server sent events' API (if we can) to sent events indicating a block has changed and needs to be refreshed. E.g. upload to filedump, so filedump-file-list anywhere will see event and refresh. Improve Tempcode to make this automatic when $BLOCK is used. The events would be a side-effect of writing to the action log.
3) The get_self_url function should work for non-index scripts so that it is really easy to create links regardless of whether it is a page or a script.
4) Remove the concept of 'wide_high', use a new URL param to decide whether to use 'STYLED_HTML_WRAP' or 'POPUP_HTML_WRAP' or 'HEADER'/'FOOTER' or raw text is output.

EDIT: Ignore the above, there's no real expectations for pages to do live updates for CMS content - and it could cause issues. 3/4 was kind of done in v9.

"to be able to be able to"

I didn't know you couldn't be able to be able to :P lol just teasing you about the typo.

Also, in terms of auto updating content, perhaps take one of my implementations on lovinity.org for forum posts and tickets. I replaced the auto load with instead an overlay message that pops up informing the user that the content has changed. That way, the user can choose whether or not to refresh, and if so, can copy their reply text or what have you so it's not lost in the refresh. Perhaps make it a choice/option for use.
...I have no idea why I talked about auto-refreshing content on here when this was about content embedding. I must have been drunk that day XD
Thank you for the sponsorship Rishi :).
This is now implemented for v11.

Thank you for your sponsorship again Rishi.
0 guests and 0 members have recently viewed this.