Hippo 10: All webfiles (css, js etc) 404

116 views
Skip to first unread message

Alasdair Macrae

unread,
Nov 3, 2015, 11:22:52 AM11/3/15
to Hippo Community
I have migrated over to Hippo 10 from 7.9 and all the site ontent loads fine. However, moving css into webfiles and ensuring the freemarker is referencing them correctly the URLs to the stylesheets just 404.

I have configured the sitemap with a webfiles node and am a little bit lost where to turn next. The webfiles do show up in the console (the whitelist.txt file does not but is present in the project source.

Anyone have any pointers?

Charlie Chen

unread,
Nov 3, 2015, 2:01:41 PM11/3/15
to hippo-c...@googlegroups.com
Hi Alasdair,

Did you use the hst:webfile tag when referencing them in your freemarker templates? See http://www.onehippo.org/library/concepts/web-files/using-web-files.html

Thanks,
Charlie

--
Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
 
To post to this group, send email to hippo-c...@googlegroups.com
RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-communi...@googlegroups.com.
Visit this group at http://groups.google.com/group/hippo-community.
For more options, visit https://groups.google.com/d/optout.



--
Charlie Chen
Solution Architect | Email: c.c...@onehippo.com
Boston -  71 Summer St, Boston, MA 02110
Amsterdam - Oosteinde 11, 1017 WT Amsterdam

US +1 877 414 4776 (toll free)
Europe +31(0)20 522 4466
http://www.onehippo.com/

Alasdair Macrae

unread,
Nov 4, 2015, 2:54:54 AM11/4/15
to Hippo Community
Hey Charlie,

I am using...

<link rel="stylesheet" media="screen" type="text/css" href="<@hst.webfile path="/css/main.css"/>" />

which outputs the html...

<link rel="stylesheet" media="screen" type="text/css" href="/site/webfiles/1446623533008/css/main.css">


the css file is at:

bootstrap/webfiles/src/main/resources/site/css/main.css

Thanks

Ali

Ard Schrijvers

unread,
Nov 4, 2015, 3:27:32 AM11/4/15
to hippo-c...@googlegroups.com
Do you have *.txt as well at
/hippo:configuration/hippo:modules/webfiles/hippo:moduleconfig/includedFiles

that is for the whitelist.txt needed, see

http://www.onehippo.org/library/concepts/web-files/web-files-configuration.html

Regards Ard

>
> Anyone have any pointers?
>
> --
> Hippo Community Group: The place for all discussions and announcements about
> Hippo CMS (and HST, repository etc. etc.)
>
> To post to this group, send email to hippo-c...@googlegroups.com
> RSS:
> https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
> ---
> You received this message because you are subscribed to the Google Groups
> "Hippo Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to hippo-communi...@googlegroups.com.
> Visit this group at http://groups.google.com/group/hippo-community.
> For more options, visit https://groups.google.com/d/optout.



--
Hippo Netherlands, Oosteinde 11, 1017 WT Amsterdam, Netherlands
Hippo USA, Inc.- 745 Atlantic Ave, Eight Floor, Boston MA 02111,
United states of America.

US +1 877 414 4776 (toll free)
Europe +31(0)20 522 4466
www.onehippo.com

Alasdair Macrae

unread,
Nov 5, 2015, 7:50:41 AM11/5/15
to Hippo Community
Hey Ard,

No I had missed that which part fixed the problem. Then realised I was missing a $ symbol for the var on the sitemap item. This resolved the issue so thanks buddy :)

Ard Schrijvers

unread,
Nov 6, 2015, 5:21:52 AM11/6/15
to hippo-c...@googlegroups.com
On Thu, Nov 5, 2015 at 1:50 PM, Alasdair Macrae
<alasdair.j...@gmail.com> wrote:
> Hey Ard,
>
> No I had missed that which part fixed the problem. Then realised I was
> missing a $ symbol for the var on the sitemap item. This resolved the issue
> so thanks buddy :)

Great you have it working, thanks for your feedback

Regards Ard
Reply all
Reply to author
Forward
0 new messages