Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

[SOLVED] Article holder not displaying on the page


Go to End


23 Posts   3285 Views

Avatar
buffy999

Community Member, 18 Posts

5 August 2014 at 9:21pm

HI Geekdenz,

Which ones do you want me to paste into sspaste website? ArtcleHolder.php or ArticleHolder.ss?

Avatar
geekdenz

Community Member, 37 Posts

5 August 2014 at 9:27pm

Both (the relevant ones).

Avatar
buffy999

Community Member, 18 Posts

5 August 2014 at 9:32pm

Here is:

http://www.sspaste.com/paste/show/53e09fdceb53b

http://www.sspaste.com/paste/show/53e0a02c3c633

Do let me know if you need ArticlePage.php and .ss.

Avatar
geekdenz

Community Member, 37 Posts

5 August 2014 at 9:39pm

Did you make sure you added some data in the backend?

Also, please just copy/paste all involved files into one sspaste and have their file names in a comment above the relevant code.

Avatar
buffy999

Community Member, 18 Posts

5 August 2014 at 9:44pm

Ok, i've copied and pasted all the codes into one place:
http://www.sspaste.com/paste/show/53e0a29e7761b

Yes i have some data at the back end, as you can see on the homepage on the Updates column:
http://www.teachsign.org.nz/

Avatar
geekdenz

Community Member, 37 Posts

5 August 2014 at 9:58pm

Can you try a couple of things:

Can you remove the $ from Children as in

<% loop Children %>

And if that doesn't work

$Content
instead of
$Content.FirstParagraph

and/or
$Content.FirstParagraph()
instead of
$Content.FirstParagraph

Avatar
geekdenz

Community Member, 37 Posts

5 August 2014 at 9:59pm

Are you absolutely sure that the articles are child pages of the Holder page? They would be in the tree in the CMS.

Avatar
geekdenz

Community Member, 37 Posts

5 August 2014 at 10:10pm

Weird. It looks like you're doing exactly as in the tutorial. Try http://www.teachsign.org.nz/about-teachsign/updates?flush=1

Which version of SS are you using?