Jump to:

23487 Posts in 18996 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Get Addictional Fields from different pagetype using a virtual page

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 849 Views
  • brausend
    Community Member
    6 Posts

    Get Addictional Fields from different pagetype using a virtual page Link to this post


    We have a litte Problem. Our site uses different Pagetype like Page, ProductPage, etc. On Our Product Page we have different addictional fields like Manufacturer, Distributor.
    Now we have a virtual productpage (own pagetype) wich is pointing at one Product Page.

    If we just load this page we don't get the addictional field. There are only the field from Sitetree included but not our field from the page_live table or productpage_live.
    The page has the pagetype virtualProductPage extending the Productpage wich itselfs extends the Page class.
    In the virtualProductPage we copied all funcions from the VirtualPage Class.

    So my idea was first of all to check wich function is called while accessing this site. Only the init function is called. So I thought the problem is much deeper in the core than only in the virtualProductPage.php file. right?

    Pherhaps someone can give me ha hint where to search, or where to modify that I don't get only the field from the sitetree. Pherhaps wich function to overwrite in the virtualproductpage file.

    many thanks

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.