[opencms-dev] Structured content: Change resource type (Paul-Inge Flakstad)
Paul-Inge Flakstad
flakstad at npolar.no
Fri May 10 11:06:41 CEST 2013
Hi Filip,
The resource type is defined and registered correctly. It was only the "change type" function I was having trouble with. Anyway, I was able to accomplish what I needed using a simple script.
Cheers,
Paul
-----Original Message-----
From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Filip Kratochvil
Sent: 8. mai 2013 15:09
To: opencms-dev at opencms.org
Subject: Re: [opencms-dev] Structured content: Change resource type (Paul-Inge Flakstad)
Hi Paul,
it looks like taht you didnĀ“t define new structured/xml content.
Look at this article:
http://www.opencms-wiki.org/wiki/Defining_OpenCMS_structured_XML_content
In short you can define new xmlcontent in:
- opencms-modules.xml config file
- manifest.xml file of the module (export module > in root directory you will see manifest which muset b edited > add new lines > save and import module). I think Marc Johnen spoke about this variant.
Good luck:)
--
S pozdravem
Filip Kratochvil
------------------------------------------------
NELASOFT Technologies, s.r.o.
Mob: +420 777 366 998
E-mail: filip.kratochvil at nelasoft.cz
Web: www.nelasoft.cz
-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of opencms-dev-request at opencms.org
Sent: Wednesday, May 08, 2013 12:00 PM
To: opencms-dev at opencms.org
Subject: opencms-dev Digest, Vol 80, Issue 3
Send opencms-dev mailing list submissions to
opencms-dev at opencms.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
or, via email, send a message with subject or body 'help' to
opencms-dev-request at opencms.org
You can reach the person managing the list at
opencms-dev-owner at opencms.org
When replying, please edit your Subject line so it is more specific than
"Re: Contents of opencms-dev digest..."
Today's Topics:
1. Structured content: Change resource type (Paul-Inge Flakstad)
2. Attachment and images in newsletter module (gnorrus at libero.it)
3. Re: Structured content: Change resource type (Marc Johnen)
4. Re: Structured content: Change resource type (Antonio Cordeddu)
5. [Ocms 8.0.4] Search results - How to get containerpages
(content without details) (Anna)
6. images are not shown in the image gallery widget
(Petronio Emilia)
7. Re: Getting detail-pages working (Yves Glodt)
8. Re: Structured content: Change resource type (Paul-Inge Flakstad)
9. Re: Structured content: Change resource type (Paul-Inge Flakstad)
10. Re: Getting detail-pages working (GreatScott)
----------------------------------------------------------------------
Message: 1
Date: Tue, 7 May 2013 16:11:51 +0200
From: Paul-Inge Flakstad <flakstad at npolar.no>
To: The OpenCms mailing list <opencms-dev at opencms.org>
Subject: [opencms-dev] Structured content: Change resource type
Message-ID:
<4D405B4872E4E54A95966E6CF909E7F343BB72E419 at ANTON.nett.npolar>
Content-Type: text/plain; charset="us-ascii"
Hi,
I have a structured content resource type (A), which I need to convert to another resource type. To avoid tiresome copy-pasting, I created a new structured content resource type (B) as an exact copy of A, in terms of fields in the XSD and so on. Only the resource type name is different (in the XSD as well).
So, everything should be set for converting a selection of A type resources into B type resources.
However, [Context menu] -> [Advanced] -> [Change type] on a resource of type A does not show B as an alternative. A (pre-selected) is the only alternative.
Is it impossible to change the resource type this way, or am I missing something?
Best regards,
Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.opencms.org/pipermail/opencms-dev/attachments/20130507/d0235
a3e/attachment-0001.html>
------------------------------
Message: 2
Date: Tue, 7 May 2013 16:40:36 +0200 (CEST)
From: "gnorrus at libero.it" <gnorrus at libero.it>
To: opencms-dev at opencms.org
Subject: [opencms-dev] Attachment and images in newsletter module
Message-ID:
<1106812873.439481367937636659.JavaMail.defaultUser at defaultHost>
Content-Type: text/plain;charset="UTF-8"
Hi
How can I use an image or an attachment inside a newsletter?
If I add one of this, then inside mail i see a relative path to image or to attachment, not absolute so they are broken links
thanks
------------------------------
Message: 3
Date: Tue, 7 May 2013 08:12:54 -0700 (PDT)
From: Marc Johnen <opencms at johnen.biz>
To: opencms-dev at opencms.org
Subject: Re: [opencms-dev] Structured content: Change resource type
Message-ID: <1367939574314-23226.post at n3.nabble.com>
Content-Type: text/plain; charset=us-ascii
Hi Paul,
I never tried that. The way I did what you want to achieve is by making an export, unzipping it, using a find&replace-tool, zip it again and import it.
Maybe that helps
Greetings
Marc
-----
Greetings
Marc Johnen
http://www.johnen.biz
--
View this message in context:
http://opencms.996256.n3.nabble.com/Structured-content-Change-resource-typ
e-tp23224p23226.html
Sent from the OpenCMS mailing list archive at Nabble.com.
------------------------------
Message: 4
Date: Tue, 07 May 2013 17:18:04 +0200
From: Antonio Cordeddu <antoniocordeddu at coranto.it>
To: The OpenCms mailing list <opencms-dev at opencms.org>
Subject: Re: [opencms-dev] Structured content: Change resource type
Message-ID: <51891B2C.9020203 at coranto.it>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
Hi Paul,
if you are working on 8.x version check if you enabled the resource of type B in your site / subsite ( .config file - sitemap_config type).
Regards
Antonio Cordeddu
On 07/05/2013 16.11, Paul-Inge Flakstad wrote:
>
> Hi,
>
> I have a structured content resource type (A), which I need to convert
> to another resource type. To avoid tiresome copy-pasting, I created a
> new structured content resource type (B) as an exact copy of A, in
> terms of fields in the XSD and so on. Only the resource type name is
> different (in the XSD as well).
>
> So, everything should be set for converting a selection of A type
> resources into B type resources.
>
> However, [Context menu] -> [Advanced] -> [Change type] on a resource
> of type A does not show B as an alternative. A (pre-selected) is the
> only alternative.
>
> Is it impossible to change the resource type this way, or am I missing
> something?
>
> Best regards,
>
> Paul
>
>
>
> _______________________________________________
> 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
>
>
>
_______________________________________
Coranto informatica di Antonio Cordeddu
Via Torricelli, 9 09047 Selargius (CA)
antoniocordeddu at coranto.it
http://www.coranto.it
___________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.opencms.org/pipermail/opencms-dev/attachments/20130507/04331
ce9/attachment-0001.html>
------------------------------
Message: 5
Date: Wed, 8 May 2013 10:24:29 +0200
From: Anna <ariccia79 at gmail.com>
To: opencms-dev at opencms.org
Subject: [opencms-dev] [Ocms 8.0.4] Search results - How to get
containerpages (content without details)
Message-ID:
<CAFmZcKbFYN36spncc_81A9Wc9v8mimyXdeiN7qNRsF1N3XvDTw at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Hi guys, I'm using OpenCMS 8.0.4 and I've a question about the results search page.
My contents don't have a detail page, but only a list page: how can I get the right links results to the containerpage instead of the single content?
Example: "associations" content, the output result link is "/.content/associations/association001.html" but I want "/en/associations/index.html".
I think I should test the content type and redirect to the right containerpage or I must have a detail page for every content I want to add to the search index, but I hope there's a better solution!
Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.opencms.org/pipermail/opencms-dev/attachments/20130508/0b359
e4b/attachment-0001.html>
------------------------------
Message: 6
Date: Wed, 8 May 2013 08:36:36 +0000
From: "Petronio Emilia" <emilia.petronio at sed.ethz.ch>
To: "opencms-dev at opencms.org" <opencms-dev at opencms.org>
Subject: [opencms-dev] images are not shown in the image gallery
widget
Message-ID: <D6B76A79BC406A47A95C731490CCC99318F1A20F at MBX13.d.ethz.ch>
Content-Type: text/plain; charset="iso-8859-1"
images are not shown in the image gallery widget
I had the following problem: in ADE I uploaded new images in an image gallery; the images were in the image folder but I could not see them in the image gallery widget (or when I clicked on "open gallery" menu of the image gallery in Explorer) and in the image cache. I shutdown and restart tomcat, no change. Then I used the menu item advanced > touch, I also checked "rewrite" and then I could see the images again.
1) Have you any idea why I had this problem? I had this problem on all the image-galleries of my site
2) I have seen that with "touch" I can change the file's timestamp, but what is "rewrite" for?
Thanks a lot in advance for you help.
Emilia
------------------------------
Message: 7
Date: Wed, 8 May 2013 10:43:19 +0200
From: Yves Glodt <yg at mind.lu>
To: The OpenCms mailing list <opencms-dev at opencms.org>
Subject: Re: [opencms-dev] Getting detail-pages working
Message-ID:
<CAAPhX7fk_n1Di1Tao4-Lopt5J9t+RJ1fZBxjt_YV0zYBfhr+7Q at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Hi Claus and thanks for your explanations.
I went for your second suggestion and created a new sub-sitemap in a subfolder /test/.
In this /test/ I dragged a "'News' type detail page" (v8news) from the sitemap-editor, and to this I dragged a "*configurable list"* from the page editor.
After setting up the collector plus the mapping, the list display the blog... but still with the un-beautified URL's.
Note that I could enable "Make detail default" for the v8news, and it would keep the setting for /news/. This is explained by your statement that only one detail page can exist per content-type per (sub) sitemap.
But still I have no rewritten URLs... :-(
Any other hint?
I would prefer to be able to use v8news for both news and blog because it does what we need, and I don't want to reinvent the wheel.
On 5 May 2013 15:15, Claus Priisholm <cpr at codedroids.com> wrote:
> Two things comes to mind:
>
> 1) content naming is not setup sufficiently explicit . I've noticed
> that when creating content, one set of defaults is used (to name the
> content sub-folder and files) and another is used when trying to find
> the content for the detail page - the result for me was that urls
> never got "beautified". I read your message such that you do get the
> urls rewritten just not to the right folder, so the setup may be fine.
>
> 2) per design you can only have one detail page per content type per
> "sitemap". I haven't tried to challenge that limitation so I am not
> sure if it would yield the result you get. You mention that they both
> are stored inside /.contents which is not necessarily the same as you
> only have one sub sitemap, but it suggest that it is the case, and
> then you will run into problems. So you will need to create sitemap
> for
news and one for blogs.
>
> Or, you can get around that limitation by not using the 8.x detail
> page mechanism, but it requires some extra work and of course may be a
> bit besides the point.
>
> Brs
> Claus
>
>
> 2013/5/2 Yves Glodt <yg at mind.lu>
>
>> Hi list,
>>
>> I seem to have trouble to get detail-pages work.
>>
>> What I am trying to do is to have a blog- and a news-section, both
>> using the v8news document-type.
>>
>> They both work in the sense of creating/editing/reading them from ADE.
>> They have their own content-stores in /.content/news and
/.content/blog/.
>>
>> /news/ and /blog/ both have just one index.html containerpage
>> containing a textblock and a list. The list is configured identically
>> for both, using the byQuery collector with identical parameters,
>> except
"news" and "blog"
>> substituted as needed.
>>
>>
>> The only issue I have is the "generated" link is not working for
/blog/.
>> For /news/ its ok.
>>
>>
>> I tried setting the "Make detail default" for "/blog/" in the
>> sitemap-editor, which has the consequence that the news still
>> work,and have their "beautiful" URL generated, but with /blog/
>> instead of /news/ "subfolder" in the URL. (But they still work)
>>
>> But whatever I try, the URLs are never generated nicely for any
>> content in /.content/blog/
>>
>> Any more hints ?
>>
>> Best regards,
>> Yves
>>
>> _______________________________________________
>> 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
>>
>>
>>
>>
>>
>
>
> --
> Claus Priisholm
> +45 48 22 46 46
> cpr (you know what) codedroids.com
>
> _______________________________________________
> 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
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.opencms.org/pipermail/opencms-dev/attachments/20130508/0b908
f18/attachment-0001.html>
------------------------------
Message: 8
Date: Wed, 8 May 2013 10:53:46 +0200
From: Paul-Inge Flakstad <flakstad at npolar.no>
To: The OpenCms mailing list <opencms-dev at opencms.org>
Subject: Re: [opencms-dev] Structured content: Change resource type
Message-ID:
<4D405B4872E4E54A95966E6CF909E7F343BB72E550 at ANTON.nett.npolar>
Content-Type: text/plain; charset="us-ascii"
Hi Marc,
After trying different things with no luck, I ended up doing something similar. I wrote a JSP script which modifies the relevant parts of the content xml (the "control code") and changes the resource type.
Cheers,
Paul
-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Marc Johnen
Sent: 7. mai 2013 17:13
To: opencms-dev at opencms.org
Subject: Re: [opencms-dev] Structured content: Change resource type
Hi Paul,
I never tried that. The way I did what you want to achieve is by making an export, unzipping it, using a find&replace-tool, zip it again and import it.
Maybe that helps
Greetings
Marc
-----
Greetings
Marc Johnen
http://www.johnen.biz
--
View this message in context:
http://opencms.996256.n3.nabble.com/Structured-content-Change-resource-typ
e-tp23224p23226.html
Sent from the OpenCMS mailing list archive at Nabble.com.
_______________________________________________
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
------------------------------
Message: 9
Date: Wed, 8 May 2013 11:00:14 +0200
From: Paul-Inge Flakstad <flakstad at npolar.no>
To: The OpenCms mailing list <opencms-dev at opencms.org>
Subject: Re: [opencms-dev] Structured content: Change resource type
Message-ID:
<4D405B4872E4E54A95966E6CF909E7F343BB72E55F at ANTON.nett.npolar>
Content-Type: text/plain; charset="us-ascii"
Hi Antonio,
This is a version 7.5 site, but thanks anyway. I was able to hack my way through.
Cheers,
Paul
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Antonio Cordeddu
Sent: 7. mai 2013 17:18
To: The OpenCms mailing list
Subject: Re: [opencms-dev] Structured content: Change resource type
Hi Paul,
if you are working on 8.x version check if you enabled the resource of type B in your site / subsite ( .config file - sitemap_config type).
Regards
Antonio Cordeddu
On 07/05/2013 16.11, Paul-Inge Flakstad wrote:
Hi,
I have a structured content resource type (A), which I need to convert to another resource type. To avoid tiresome copy-pasting, I created a new structured content resource type (B) as an exact copy of A, in terms of fields in the XSD and so on. Only the resource type name is different (in the XSD as well).
So, everything should be set for converting a selection of A type resources into B type resources.
However, [Context menu] -> [Advanced] -> [Change type] on a resource of type A does not show B as an alternative. A (pre-selected) is the only alternative.
Is it impossible to change the resource type this way, or am I missing something?
Best regards,
Paul
_______________________________________________
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
_______________________________________
Coranto informatica di Antonio Cordeddu
Via Torricelli, 9 09047 Selargius (CA)
antoniocordeddu at coranto.it<mailto:antoniocordeddu at coranto.it>
http://www.coranto.it
___________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.opencms.org/pipermail/opencms-dev/attachments/20130508/efcae
b86/attachment-0001.html>
------------------------------
Message: 10
Date: Wed, 8 May 2013 02:15:23 -0700 (PDT)
From: GreatScott <ariccia79 at gmail.com>
To: opencms-dev at opencms.org
Subject: Re: [opencms-dev] Getting detail-pages working
Message-ID: <1368004523857-23233.post at n3.nabble.com>
Content-Type: text/plain; charset=us-ascii
I don't know if this is what you want, I'll try to explain how I rewrite urls for detail pages.
I've added in my schemas of every content a custom field:
<xsd:element name="Url" type="OpenCmsString" minOccurs="1" maxOccurs="1"
/>
I've mapped it (urlName is a system keywords):
<mapping element="Url" mapto="urlName"/>
The URL field rewrites the OpenCMS generated url.
Example in blog.xsd:
URL field: my-beaufitul-content-detail
URL address: www.mysite.com/blog/my-beaufitul-content-detail
URL field: (empty)
URL address: www.mysite.com/blog/fjnhxieyndgehjlsal (==> OpenCMS generated link).
Hope this help.
Ciao
-----
<<<<<===============================
Roads? Where we're going, we don't need roads.
===============================>>>>>
Italy
--
View this message in context:
http://opencms.996256.n3.nabble.com/Getting-detail-pages-working-tp23218p2
3233.html
Sent from the OpenCMS mailing list archive at Nabble.com.
------------------------------
_______________________________________________
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
End of opencms-dev Digest, Vol 80, Issue 3
******************************************
_______________________________________________
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
More information about the opencms-dev
mailing list