Setting page attributes

Hi,

I’m new on the forum.

I’ve a simple custom page :

class MyPage < Page

end

I want to set the page attributes (title, description, keywords).
I try this code :
tag.locals.page.title = “hello my page”
or
Page.title = “hello my page”

but is not good.

Anyone can help me ?

Thk
Alessandro

Alessandro A. wrote:

Hi,

I’m new on the forum.

I’ve a simple custom page :

class MyPage < Page

end

I want to set the page attributes (title, description, keywords).
I try this code :
tag.locals.page.title = “hello my page”
or
Page.title = “hello my page”

but is not good.

Anyone can help me ?

Thk
Alessandro

Hi,

i think that i’ve found a solution :
class MyPage < Page
attr_accesstor :title

   def title
    #something
   end

end

Bye