[opencms-dev] Modelgroup
laurent.druart
laurent.druart at ldict.be
Sat Aug 16 17:22:54 CEST 2025
Hello,
I partially fixed my issue. In my footer.jsp template (template for the model group) I added head and body section and cms:link to css and js. I can now drop content in my model group. I dropped the model group in the footer container in template model and this change seems to only affect new pages, previous pages are not updated.
I also noticed the following:
- The HTML tags surrounding the container section of footer.jsp are not being integrated into the new pages
- Only the first content dropped in the footer model group is being included in the pages. Is this a limitation of the model group?
Thanks for your help,
Laurent
> Le 15 août 2025 à 14:41, laurent.druart via opencms-dev <opencms-dev at opencms.org> a écrit :
>
> Hello,
>
> I would like to have two variations of my template, each with a different footer. So I'm thinking of using "model groups" and "template models." In my JSP template, I have a "container" section to define my footer.
>
> <cms:container name="footer-modelgroup">
> <div class="my-container-border">
> <h3>Container du footer</h3>
> <p>Déposez ici votre model group (footer).</p>
> </div>
> </cms:container>
>
>
> For my model groups I created a footer.jsp template in my module that only includes a container section:
> <%@page taglibs="c,cms" %>
> <%@page buffer="none" session="false" trimDirectiveWhitespaces="true" %>
> <%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>
> <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
> <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
> <cms:enable-ade/>
> <div class="footer container-xxl">
> <cms:container name="footer">
> <div class="my-container-border">
> <h3>Container du footer</h3>
> <p>Déposez ici vos différents contenus.</p>
> </div>
> </cms:container>
> </div>
>
> I created a model group in the sitemap editor that I associated with the footer.jsp template.
>
> I then want to associate each model group in my template models, but I can't define content in my model groups, the "container" section is inactive.
>
> What have I forgotten? Is my understanding of model groups correct?
>
> Thanks for your help,
>
> Kind regards,
>
> Laurent
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> https://lists.opencms.org/mailman/listinfo/opencms-dev
>
>
>
More information about the opencms-dev
mailing list