List articles with more than one article type
  • Vote Up0Vote Down Micz FlorMicz Flor
    Posts: 184Administrator
    I have to create a list showing all articles from two article types, called "standard" and "standardneu". The following command correctly lists all "standardneu":

    {{ list_articles constraints="type is standardneu" order="byPublishDate desc"}}


    How can i expand this to list all with both article types, but only these two, not all types in the section?
  • 3 Comments sorted by
  • Sorry for this email. I mistake and hit send.
  • Currently you can't do this.

    Mugur Rus
    Senior Software Developer, Sourcefabric
    mugur.rus@sourcefabric.org

    Cluj-Napoca, Romania
    +40 (0)720 528408
    Skype: mugur_rus

    http://www.sourcefabric.org
    http://www.twitter.com/Sourcefabric


    On Wed, Jun 30, 2010 at 12:28 PM, Micz Flor <
    campsite-support@lists.sourcefabric.org> wrote:

    > I have to create a list showing all articles from two article types,
    > called "standard" and "standardneu". The following command correctly lists
    > all "standardneu":
    >
    > {{ list_articles constraints="type is standardneu" order="byPublishDate desc"}}
    >
    >
    >
    > How can i expand this to list all with both article types, but only these
    > two, not all types in the section?
    >

  • "1- I have Imagemagick in my server, so the thumbnails are resize ok. But
    these resized images are useful only for admin area?"
    Thumbnails are reused if linked from the frontend. In 3.4 you can set the
    image width/height. E.g.:
    <img src="{{ uri options="image x" }}&ImageWidth=a&ImageHeight=b">

    "2- I know v3.3.6 have not resize automatically images for publishing.
    So, what method can I use to do it? Resizing locally and then upload?"
    Yes

    "3- In System Preference, the field Editor Image Ratio have no effect to
    the upload images. Also I can't set (as manual say) hight and width
    values, because there are no field for these values."
    This value is used when you embed the image in the article body text. The
    embedded image will be shown with this ratio on the frontend.

    "4- Is there a chance to add a custom fields for journalist profile?"
    In a later version (3.5 most probably)

    Mugur Rus
    Senior Software Developer, Sourcefabric
    mugur.rus@sourcefabric.org

    Cluj-Napoca, Romania
    +40 (0)720 528408
    Skype: mugur_rus

    http://www.sourcefabric.org
    http://www.twitter.com/Sourcefabric


    On Wed, Jun 30, 2010 at 5:22 PM, Normando Hall <
    campsite-support@lists.sourcefabric.org> wrote:

    > First of all, thanks for this excellent piece of software.
    >
    > I have a few dudes, but before posting here I was searching in the
    > manual and read it, bug tracker and forum-list.
    >
    > I was installed Campsite in my own server, and run perfect, but I
    > describe bellow my dudes:
    >
    > 1- I have Imagemagick in my server, so the thumbnails are resize ok. But
    > these resized images are useful only for admin area?
    > 2- I know v3.3.6 have not resize automatically images for publishing.
    > So, what method can I use to do it? Resizing locally and then upload?
    > 3- In System Preference, the field Editor Image Ratio have no effect to
    > the upload images. Also I can't set (as manual say) hight and width
    > values, because there are no field for these values.
    > 4- Is there a chance to add a custom fields for journalist profile?
    > 5- I was made a local clone of your git repository, because I want to
    > test the last changes. But I see that some directory are not presente in
    > v3.3.6, so I think it is not possible to overwrite v3.3.6 with those
    > files from git repository. What can I do? Install a new copy of Campsite
    > from the last sources?
    >
    > The follow I think go in the dev site, so sorry for this:
    >
    > 1- Images in the wiki are broken: for instance:
    > http://wiki.sourcefabric.org/display/CS/Image+Resizing+and+Z ooming< http://wiki.sourcefabric.org/display/CS/Image+Resizing+and+Z ooming>
    > 2- If an article has an attachment, I can't download or vie in the
    > browser. Each time I have click on the attachment link, I go to the
    > frontpage
    > 3- Translating language to spanish I have found that some strings are
    > not showed through Localizer page. For example, the words "Reorder" and
    > "Author" in the articles.php file are there in the file, but not appear
    > in the Localizer screen
    > 4- I always receive an email from Campsite, saying that the system is
    > ok, but the email is send to an inexistent recipient. Campsite send to
    > myapacheuser@myhost
    > Can I configured in a file the recipient, and how to disable these
    > notifications?
    >
    > Sorry for this big email, and for my bad english, I hope you can
    > understand.
    >
    > Best regards
    > Normando
    >
    >