You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Sean Fulton <fu...@cmu.edu> on 2004/12/05 17:49:01 UTC

Change the DocType of the top page

Hello,

How do I change the DocType of the top level index page (or any page 
for that matter)?

Thanks,

	Sean



---------------------------------------------------------------------
To unsubscribe, e-mail:             user-unsubscribe@lenya.apache.org
For additional commands, e-mail:           user-help@lenya.apache.org
Apache Lenya Project                          http://lenya.apache.org


Re: Change the DocType of the top page

Posted by Sean Fulton <fu...@cmu.edu>.
On 2004-12-09 11:48:00 -0500, "Gregor J. Rothfuss" <gr...@apache.org> said:

> Sean Fulton wrote:
> 
>> Ah,  thanks. It might be useful to include the doctype in in the 'Site' 
>> area under overview or metadata.
> 
> a good idea.
> 
>> Why are doctypes called 'Form' on the editing page? Will one of these 
>> be changed for consistency?
> 
> an oversight of the forms editor. it should really be doctype as you say.
> 
> can you file enhancement bugs?

I filed both of these as bugs.

	Sean



---------------------------------------------------------------------
To unsubscribe, e-mail:             user-unsubscribe@lenya.apache.org
For additional commands, e-mail:           user-help@lenya.apache.org
Apache Lenya Project                          http://lenya.apache.org


Re: Change the DocType of the top page

Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Sean Fulton wrote:

> I think, for me at least, the problem is that the forms have the same 
> name as the doctypes. That's why I assumed they were the same thing.
> 
> You might consider making it more verbose. e.g.:
> Form: XHTML Default
> 
> And, maybe add the doctype to the page.
> 
> But, this could just be my problem.

usability problems are not just your problem.

please continue to hit bugzilla with issues like that.

-- 
Gregor J. Rothfuss
COO, Wyona       Content Management Solutions    http://wyona.com
Apache Lenya                              http://lenya.apache.org
gregor.rothfuss@wyona.com                       gregor@apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail:             user-unsubscribe@lenya.apache.org
For additional commands, e-mail:           user-help@lenya.apache.org
Apache Lenya Project                          http://lenya.apache.org


Re: Change the DocType of the top page

Posted by Sean Fulton <fu...@cmu.edu>.
On 2004-12-10 03:21:52 -0500, Andreas Hartmann <an...@apache.org> said:

> Gregor J. Rothfuss wrote:
>> Sean Fulton wrote:
>> 
>>> Ah,  thanks. It might be useful to include the doctype in in the 'Site' 
>>> area under overview or metadata.
>> 
>> 
>> a good idea.
>> 
>>> Why are doctypes called 'Form' on the editing page? Will one of these 
>>> be changed for consistency?
>> 
>> 
>> an oversight of the forms editor. it should really be doctype as you say.
> 
> No, they are different concepts.
> 
> You should be able to use different forms per doctype
> and one form for several doctypes.


 I think, for me at least, the problem is that the forms have the same 
name as the doctypes. That's why I assumed they were the same thing.

You might consider making it more verbose. e.g.:
Form: XHTML Default

And, maybe add the doctype to the page.

But, this could just be my problem.

	Sean



---------------------------------------------------------------------
To unsubscribe, e-mail:             user-unsubscribe@lenya.apache.org
For additional commands, e-mail:           user-help@lenya.apache.org
Apache Lenya Project                          http://lenya.apache.org


Re: Change the DocType of the top page

Posted by Andreas Hartmann <an...@apache.org>.
Gregor J. Rothfuss wrote:
> Sean Fulton wrote:
> 
>> Ah,  thanks. It might be useful to include the doctype in in the 
>> 'Site' area under overview or metadata.
> 
> 
> a good idea.
> 
>> Why are doctypes called 'Form' on the editing page? Will one of these 
>> be changed for consistency?
> 
> 
> an oversight of the forms editor. it should really be doctype as you say.

No, they are different concepts.

You should be able to use different forms per doctype
and one form for several doctypes.

-- Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail:             user-unsubscribe@lenya.apache.org
For additional commands, e-mail:           user-help@lenya.apache.org
Apache Lenya Project                          http://lenya.apache.org


Re: Change the DocType of the top page

Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Sean Fulton wrote:

> Ah,  thanks. It might be useful to include the doctype in in the 'Site' 
> area under overview or metadata.

a good idea.

> Why are doctypes called 'Form' on the editing page? Will one of these be 
> changed for consistency?

an oversight of the forms editor. it should really be doctype as you say.

can you file enhancement bugs?

-- 
Gregor J. Rothfuss
COO, Wyona       Content Management Solutions    http://wyona.com
Apache Lenya                              http://lenya.apache.org
gregor.rothfuss@wyona.com                       gregor@apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail:             user-unsubscribe@lenya.apache.org
For additional commands, e-mail:           user-help@lenya.apache.org
Apache Lenya Project                          http://lenya.apache.org


Re: Change the DocType of the top page

Posted by Sean Fulton <fu...@cmu.edu>.
On 2004-12-08 21:38:09 -0500, "Gregor J. Rothfuss" <gr...@apache.org> said:

> Sean Fulton wrote:
> 
>> Thanks. Now that I've updated I still have the same question. I added 
>> the homepage doctype to the menu but this doesn't do me much good (I 
>> had created something similar already). How do I change the doctype of 
>> the top level (/index) page?
> 
> the top level is already homepage doc type as you can see from going to
> 
> http://localhost:8888/default/authoring/index.html?form=homepage&lenya.event=edit&lenya.usecase=edit&lenya.step=open

I 
> 
> 
>> I can't create a new one with that ID. I can't delete the one that's 
>> there. I'm stumped.
> 
> if you go to parameter-doctype.xmap, you will see why:
> 
>        <map:match pattern="*/index*.html">
>          <map:generate type="serverpages" 
> src="../../config/parameters/default.xsp">
>            <map:parameter name="value" value="homepage"/>
>          </map:generate>
>          <map:serialize type="xml"/>
>        </map:match>
> 
> parameter-doctype.xmap does nothing else than report back the doc type 
> of the page you are on. in this case, only /index*.html can be of type 
> homepage.
> 
> change that matcher to allow homepage in more places

Ah,  thanks. It might be useful to include the doctype in in the 'Site' 
area under overview or metadata.

Why are doctypes called 'Form' on the editing page? Will one of these 
be changed for consistency?

Thanks for your help.

	Sean



---------------------------------------------------------------------
To unsubscribe, e-mail:             user-unsubscribe@lenya.apache.org
For additional commands, e-mail:           user-help@lenya.apache.org
Apache Lenya Project                          http://lenya.apache.org


Re: Change the DocType of the top page

Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Sean Fulton wrote:

> Thanks. Now that I've updated I still have the same question. I added 
> the homepage doctype to the menu but this doesn't do me much good (I had 
> created something similar already). How do I change the doctype of the 
> top level (/index) page?

the top level is already homepage doc type as you can see from going to

http://localhost:8888/default/authoring/index.html?form=homepage&lenya.event=edit&lenya.usecase=edit&lenya.step=open

> I can't create a new one with that ID. I can't delete the one that's 
> there. I'm stumped.

if you go to parameter-doctype.xmap, you will see why:

       <map:match pattern="*/index*.html">
         <map:generate type="serverpages" 
src="../../config/parameters/default.xsp">
           <map:parameter name="value" value="homepage"/>
         </map:generate>
         <map:serialize type="xml"/>
       </map:match>

parameter-doctype.xmap does nothing else than report back the doc type 
of the page you are on. in this case, only /index*.html can be of type 
homepage.

change that matcher to allow homepage in more places

-- 
Gregor J. Rothfuss
COO, Wyona       Content Management Solutions    http://wyona.com
Apache Lenya                              http://lenya.apache.org
gregor.rothfuss@wyona.com                       gregor@apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail:             user-unsubscribe@lenya.apache.org
For additional commands, e-mail:           user-help@lenya.apache.org
Apache Lenya Project                          http://lenya.apache.org


Re: Change the DocType of the top page

Posted by Sean Fulton <fu...@cmu.edu>.
On 2004-12-05 12:59:50 -0500, "Gregor J. Rothfuss" <gr...@apache.org> said:

> Sean Fulton wrote:
>> Hello,
>> 
>> How do I change the DocType of the top level index page (or any page 
>> for that matter)?
> 
> you may want to check out the 1.2 branch from SVN. we recently added 
> more doctypes to the default publication, such as a homepage doctype to 
> allow special treament of the homepage.

Thanks. Now that I've updated I still have the same question. I added 
the homepage doctype to the menu but this doesn't do me much good (I 
had created something similar already). How do I change the doctype of 
the top level (/index) page?

I can't create a new one with that ID. I can't delete the one that's 
there. I'm stumped.

	Sean



---------------------------------------------------------------------
To unsubscribe, e-mail:             user-unsubscribe@lenya.apache.org
For additional commands, e-mail:           user-help@lenya.apache.org
Apache Lenya Project                          http://lenya.apache.org


Re: Change the DocType of the top page

Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Sean Fulton wrote:
> Hello,
> 
> How do I change the DocType of the top level index page (or any page for 
> that matter)?

you may want to check out the 1.2 branch from SVN. we recently added 
more doctypes to the default publication, such as a homepage doctype to 
allow special treament of the homepage.

-- 
Gregor J. Rothfuss
COO, Wyona       Content Management Solutions    http://wyona.com
Apache Lenya                              http://lenya.apache.org
gregor.rothfuss@wyona.com                       gregor@apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail:             user-unsubscribe@lenya.apache.org
For additional commands, e-mail:           user-help@lenya.apache.org
Apache Lenya Project                          http://lenya.apache.org