[opencms-dev] Newbie problem with OpenCMS - New Content Disapears

Dr. John A. Kassebaum PhD, PE jak at kassebaumengineering.com
Mon Feb 15 21:57:07 CET 2016


Hi Lorenz,

I found the opencms.log file - very helpful. Not seeing many errors yet - but I just reloaded the whole thing (9.5.3) to be sure I see everything. 

The guts of the page are very simple - basically just copied the grid-demo-page.jsp.  Maybe that’s the problem? 

<body>
<div class="page-wrap wrapper">
    <c:if test="${cms.isEditMode}">
        <!--=== Placeholder for OpenCms toolbar in edit mode ===-->
        <div style="background: lightgray; height: 35px"> </div>
    </c:if>
    <div style="background: blue; height: 35px">  
        <img align="right" height="100" src="<cms:link>%(link.weak:/system/modules/com.k2ee.wpcp_framework/resources/img/FortWayneLogo.jpg)</cms:link>" />
    </div>
        <cms:container name="page-complete" type="page" width="1200" maxElements="15" editableby="ROLE.DEVELOPER">
        <cms:bundle basename="com.alkacon.bootstrap.formatters.messages">
            <div class="servive-block rounded-3x servive-block-red">
                 <p><fmt:message key="bootstrap.page.text.emptycontainer"/></p>           
            </div>
        </cms:bundle>
    </cms:container>
</div><!--/page-wrap-->
</body>

This gives me a “Please drop your Layout Rows here” where I can drop a grid-demo template row. I’m about to try this again while watching the opencms.log and see if I learn anything.  I think I do understand the basic idea of content types and formatters … but I can’t get the basic editing functions to work on my own page which makes me think I have missed something critical. 

Thanks for your help!!
-John

> On Feb 15, 2016, at 3:50 PM, Lorenz Lammersdorf <lorenz.lammersdorf at kernbrand.ch> wrote:
> 
> sorry, typo: it's of course opencms.log.
> 
> just to make sure: you've configured your basicpage.jsp as template in
> your site's configuration and then created a new container page (e. g.
> index.html) in your site's folder?
> 
> sounds as if your formatter creates no output. is there any
> formatter-related html code in your edited page, e. g. the content of
> your text box?
> i never used the demo bootstrap template, but usually a formatter
> checks if there's content in the added module, e. g. the textbox,
> something like this:
> 
> <c:if test="${content.value.RoBeContactLink.exists}">
>                <c:forEach var="item"
> items="${content.valueList.RoBeContactLink}" varStatus="status">
>                <p>
>                    <a
> href="<cms:link>${item.value.RoBeLinkLink}</cms:link>"><button
> class="RoBeContactButton">${item.value.RoBeLinkText}</button></a>
>                </p>
>                </c:forEach>
> </c:if>
> 
> if in this example "item" is empty no output is written.
> 
> regards
> lorenz
> 
> 
> 
> 
> 2016-02-15 21:27 GMT+01:00 Dr. John A. Kassebaum PhD, PE
> <jak at kassebaumengineering.com>:
>> Hi Lorenz,
>> 
>> I am actually merely trying to get an initial setup running - so I was trying to create a basicPage.jsp that was based on the grid-demo-page.jsp from the bootstrap formatters module. Then - editing - I try to add bootstrap content types to the page. I add a Template Row, then I add a Layout Column, then back to default  and add a text box. The page info show the XML content to be present. but then, when I view the page from another tab - or refresh the tab I’m editing in - the 'page info’ xml content remains the same, but the newly added text box vanishes from the rendered page.
>> 
>> I’m sure I must be dong something wrong - but I have not yet gotten far enough to create my own content types. That is next.
>> 
>> Thanks and best regards,
>> -John
>> 
>> P.S. Thanks for aiming me at /webapps/opencms/WEB-INF/logs/oipencms.log - I’ll take a look!
>> 
>>> On Feb 15, 2016, at 3:14 PM, Lorenz Lammersdorf <lorenz.lammersdorf at kernbrand.ch> wrote:
>>> 
>>> john,
>>> 
>>> did i understand you correct: you're using a self-written template?
>>> could you please show us your container definition? and which content
>>> type do you want to add?
>>> 
>>> btw: catalina.out is only one place to look. have a look at
>>> /webapps/opencms/WEB-INF/logs/oipencms.log to find the errors thrown
>>> by opencms. or have a look at administration -> workplace tools -> log
>>> file to see the last 50 lines (or so) of opencms.log.
>>> 
>>> regards
>>> lorenz
>>> 
>>> 2016-02-15 20:18 GMT+01:00 Dr. John A. Kassebaum PhD, PE
>>> <jak at kassebaumengineering.com>:
>>>> Hi Chris!
>>>> 
>>>> Thanks for the idea - I tried this during number of operations (startup, shutdown, and just running OpenCMS - editing, etc.) - and I see no error messages. I was viewing “catalina.out for Tomcat which appears to be where OpenCMS emits its log info.
>>>> 
>>>> Still unable to edit content … its like the formatter for all content types is “disintigrator booth”.
>>>> 
>>>> -John
>>>> 
>>>>> On Feb 13, 2016, at 8:01 AM, Christoph Kukulies <kuku at physik.rwth-aachen.de> wrote:
>>>>> 
>>>>> Am 12.02.2016 um 20:58 schrieb Dr. John A. Kassebaum PhD, PE:
>>>>>> 
>>>>>> Hi OpenCMS folks,
>>>>>> 
>>>>>> I am an OpenCMS newbie, but have had little trouble getting everything setup and working. No problem with the demo site or development tools (Netbeans and nbDriva). However, I am concerned that I am missing something significant.
>>>>>> 
>>>>>> Problem: I have created a new website for my client using the Workspace Manager, and coded a simplistic new module with my own templates/basicPage.jsp.  I am able to add content to it - but, if I refresh the page after adding content, all of that newly added content becomes invisible. I can still see the record of the info in the Page Info (xml content) - but the produced page HTML does not include rendering of the content. I have not created any of my own formatters and/or content types, and am using the content type from the bootstrap modules as a starting point.
>>>>>> 
>>>>>> Can someone give me a clue? What I am I missing?
>>>>>> 
>>>>> 
>>>>> 
>>>>> Sometimes it can be helpful to watch opencms.log when the servlet container(tomcat) and OpenCms start and examine the log for any xml errors, exceptions, etc..
>>>>> 
>>>>> 
>>>>> 
>>>>> --
>>>>> Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
>>>>> _______________________________________________
>>>>> 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
>>>>> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>>>> 
>>>> 
>>>> 
>>>> --
>>>> John A. Kassebaum, PhD PE AC9JX
>>>> Kassebaum Engineering LLC
>>>> Main: (317) 225-4126 x2
>>>> Cell: (317) 250-7932
>>>> 
>>>> _______________________________________________
>>>> 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
>>>> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>>>> 
>>>> 
>>>> 
>>> 
>>> 
>>> 
>>> --
>>> Kernbrand ist umgezogen. Bitte beachten Sie die neuen Koordinaten.
>>> --
>>> Aktuell im Blog Mensch Marke: Besser bloggen statt werben
>>> Unseren Newsletter abonnieren
>>> --
>>> Lorenz Lammersdorf
>>> Senior Web Developer
>>> 
>>> Kernbrand AG
>>> Teufener Strasse 11
>>> 9000 St.Gallen
>>> +41 58 255 13 06 direkt
>>> +41 58 255 13 00
>>> www.kernbrand.ch
>>> --
>>> Support kontaktieren: support at kernbrand.ch
>>> --
>>> Verbinden Sie sich jetzt mit uns! Wir freuen uns auf Sie.
>>> _______________________________________________
>>> 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
>>> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>>> 
>>> 
>>> 
>> 
>> 
>> 
>> --
>> John A. Kassebaum, PhD PE AC9JX
>> Kassebaum Engineering LLC
>> Main: (317) 225-4126 x2
>> Cell: (317) 250-7932
>> 
>> _______________________________________________
>> 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
>> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>> 
>> 
>> 
> 
> 
> 
> -- 
> Kernbrand ist umgezogen. Bitte beachten Sie die neuen Koordinaten.
> --
> Aktuell im Blog Mensch Marke: Besser bloggen statt werben
> Unseren Newsletter abonnieren
> --
> Lorenz Lammersdorf
> Senior Web Developer
> 
> Kernbrand AG
> Teufener Strasse 11
> 9000 St.Gallen
> +41 58 255 13 06 direkt
> +41 58 255 13 00
> www.kernbrand.ch
> --
> Support kontaktieren: support at kernbrand.ch
> --
> Verbinden Sie sich jetzt mit uns! Wir freuen uns auf Sie.



--
John A. Kassebaum, PhD PE AC9JX
Kassebaum Engineering LLC
Main: (317) 225-4126 x2
Cell: (317) 250-7932




More information about the opencms-dev mailing list