[Yanel-dev] Create new page (resource-creator Resource Contribution)

Balz Schreier balz.schreier at gmail.com
Wed Feb 9 16:25:07 CET 2011


Yes exactly, it was hardcoded that the RC file gets always created:

see create() method, these two lines get executed everytime a new page gets
created:

      createResourceConfiguration(newResource);

addToSitetree(newResource, type);

Please submit the patch, would be great :-)

Cheers
Balz

On Wed, Feb 9, 2011 at 4:17 PM, Cedric Staub <cedric.staub at wyona.com> wrote:

> On Wed, Feb 09, 2011 at 03:11:33PM +0000, Michael Wechner wrote:
> > Hi Balz
> >
> > On 2/9/11 2:37 PM, Balz Schreier wrote:
> > > Hi,
> > >
> > > does anybody know this:
> > >
> > > - Via Yanel Toolbar, you can create a new page in your realm (static
> > > web page).
> > > - This works fine, except that the creating resource does not only
> > > create the new HTML page but also saves a resource configuration file
> > > (RC) in the RC repository!
> >
> > it shouldn't actually, see
> >
> src/contributions/resources/resource-creator/src/java/org/wyona/yanel/impl/resources/rescreator/ResourceCreatorResource.java
>
> But it does. The create function in ResourceCreatorResource calls
> createResourceConfiguration, which generates a new resource config and
> writes it into the res-configs repo.
>
> Balz's patch makes that configurable, so that the creation of the
> resource configuration file can be disabled.
>
> Cheers,
> Cedric
> --
> Yanel-development mailing list Yanel-development at wyona.com
> http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wyona.org/pipermail/yanel-development/attachments/20110209/80863296/attachment.html>


More information about the Yanel-development mailing list