* Graham The forum twig file has been updated to improve the handling of attachments when editing a post
Basically you will now see the current attachments listed and you can delete unwanted attachments
Also the breadcrumbs tail now actually says "Edit post"
in the standard xtforum.twig file the changes are at line 240 - 248 the new code is
{% if not user_silenced %}
                {% if reply_to %}
                    {% set post = thread.posts|first %}
                    {% import _self as script %}
                    {{block('post_view')}}
                {% elseif edit_post %}
                    {% set post = thread.posts|first %}
                {% endif %}

Copy code

the twig file at http://syntax.xtgem.com/_xtgem_templates/xtforum.twig.js has been updated to reflect the change
2014-07-08 02:13 (edited 2014-07-08 04:26 by Graham ) · (0)
* Aash How do i use it?
2014-07-08 08:55 · (0)
* Graham * Aash If you have a custom twig template then you just have to alter the relevant part of the code as shown.
if you are using the default forum then you don't have to do anything it is just a slightly different page when you are editing posts that have attachments .
2014-07-08 09:19 · (0)
* tiaxgame i use ver 'split'
How do i add it?
2014-07-08 14:01
*
* h2.gif · image/gif · 136.14KB
· (0)
* Graham * tiaxgame in the file "view_edit_post"
just above the form
the only actual difference is the elseif
{% elseif edit_post %}
 {% set post = thread.posts|first %}

Copy code
2014-07-08 14:10 (edited 2014-07-08 14:19 by Graham ) · (0)
* tiaxgame * Graham Ok! Thanks
2014-07-08 14:23 (edited 2014-07-08 14:36 by tiaxgame ) · (0)

Online: Guests: 1