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

Commit a34418c

Browse files
committed
1st attempt with homemande NS for news
1 parent b3ca979 commit a34418c

File tree

4 files changed

+12
-14
lines changed

4 files changed

+12
-14
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ app/logs/*
55
vendor/
66
app/bootstrap.php.cache
77
app/app.sqlite
8-
app/config/parameters.dist
8+
app/config/parameters.yml
99

1010
web/config.php
1111
app/SymfonyRequirements.php

app/config/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
imports:
2-
- { resource: parameters.yml }
2+
- { resource: parameters.yml.dist }
33
- { resource: security.yml }
44

55
framework:
@@ -76,4 +76,4 @@ fos_rest:
7676
symfony_cmf_create:
7777
phpcr_odm: true
7878
map:
79-
http://rdfs.org/sioc/ns#Post: Cmf\MainBundle\Document\NewsDetail
79+
http://cmf.symfony.com/ns#NewsDetail: Cmf\MainBundle\Document\NewsDetail
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
<type
2-
xmlns:sioc="http://rdfs.org/sioc/ns#"
32
xmlns:dcterms="http://purl.org/dc/terms/"
4-
xmlns:skos="http://www.w3.org/2004/02/skos/core#"
5-
typeof="sioc:Post"
3+
xmlns:cmf="http://cmf.symfony.com/ns#"
4+
typeof="cmf:NewsCollection"
65
>
76
<children>
8-
<property property="dcterms:title" identifier="title" tag-name="h1"/>
9-
<property property="sioc:content" identifier="body" />
7+
<property property="cmf:title" identifier="title" tag-name="h1"/>
8+
<property property="cmf:content" identifier="body" />
109

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

1312
</children>
1413
</type>
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
<type
2-
xmlns:sioc="http://rdfs.org/sioc/ns#"
32
xmlns:dcterms="http://purl.org/dc/terms/"
4-
xmlns:skos="http://www.w3.org/2004/02/skos/core#"
5-
typeof="sioc:Post"
3+
xmlns:cmf="http://cmf.symfony.com/ns#"
4+
typeof="cmf:NewsDetail"
65
>
76
<children>
8-
<property property="dcterms:title" identifier="title" tag-name="h1"/>
9-
<property property="sioc:content" identifier="body" />
7+
<property property="cmf:title" identifier="title" tag-name="h1"/>
8+
<property property="cmf:content" identifier="body" />
109
</children>
1110
</type>

0 commit comments

Comments
 (0)