Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Commit

Permalink
1st attempt with homemande NS for news
Browse files Browse the repository at this point in the history
  • Loading branch information
adou600 committed Oct 18, 2012
1 parent b3ca979 commit a34418c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ app/logs/*
vendor/
app/bootstrap.php.cache
app/app.sqlite
app/config/parameters.dist
app/config/parameters.yml

web/config.php
app/SymfonyRequirements.php
Expand Down
4 changes: 2 additions & 2 deletions app/config/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
imports:
- { resource: parameters.yml }
- { resource: parameters.yml.dist }
- { resource: security.yml }

framework:
Expand Down Expand Up @@ -76,4 +76,4 @@ fos_rest:
symfony_cmf_create:
phpcr_odm: true
map:
http://rdfs.org/sioc/ns#Post: Cmf\MainBundle\Document\NewsDetail
http://cmf.symfony.com/ns#NewsDetail: Cmf\MainBundle\Document\NewsDetail
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
<type
xmlns:sioc="http://rdfs.org/sioc/ns#"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:skos="http://www.w3.org/2004/02/skos/core#"
typeof="sioc:Post"
xmlns:cmf="http://cmf.symfony.com/ns#"
typeof="cmf:NewsCollection"
>
<children>
<property property="dcterms:title" identifier="title" tag-name="h1"/>
<property property="sioc:content" identifier="body" />
<property property="cmf:title" identifier="title" tag-name="h1"/>
<property property="cmf:content" identifier="body" />

<collection rel="skos:related" identifier="children" tag-name="ul" type="sioc:Post" />
<collection rel="cmf:related" identifier="children" tag-name="ul" type="cmf:NewsDetail" />

</children>
</type>
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<type
xmlns:sioc="http://rdfs.org/sioc/ns#"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:skos="http://www.w3.org/2004/02/skos/core#"
typeof="sioc:Post"
xmlns:cmf="http://cmf.symfony.com/ns#"
typeof="cmf:NewsDetail"
>
<children>
<property property="dcterms:title" identifier="title" tag-name="h1"/>
<property property="sioc:content" identifier="body" />
<property property="cmf:title" identifier="title" tag-name="h1"/>
<property property="cmf:content" identifier="body" />
</children>
</type>

0 comments on commit a34418c

Please sign in to comment.