Silva News Network, showing multiple News sources at one time

Asked by mallow

I'm looking into Silva News Network in solving many of the problems I had in the past,

Is it possible to have on the main page several different news viewers, for example:

Have two columns with a news viewer for two sections in it displaying 3 items each and then another viewer....

Kind of like a mixture of these two sites:
http://da.mod.uk/
This one has three columns which display different sources of news
and
http://www.waldwissen.net/
which looks like one news viewer but how they got it in two columns like that I don't know?

Is there a silva product similar to Multi_Toc which allows such customization

Question information

Language:
English Edit question
Status:
Solved
For:
Silva Edit question
Assignee:
No assignee Edit question
Solved by:
mallow
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
Kit Blake (kitblake) said :
#1

Yes, you can do that in the template for the main page by inserting the output of different News Viewers, much the same as you insert the document content.

If you're not happy with the Viewer output, have a look at the Inline News Viewer:

+ In your Silva root (or wherever you need it) in the ZMI, create a "Silva News Inline Viewer"

This can be inserted in a Silva Document which is pulled into the main page template. If you want three columns, the easiest way is to insert three documents. Then you can edit them separately, adding an intro, the viewer, or whatever you need.

Revision history for this message
mallow (princemallow) said :
#2

Thank you, I'll have an opportunity to look at that a little later... One question though, If after creating an article the author gave it say three subjects, and we wanted to go back and add another subject to that article, how does he change it. I can't seem to find the place to edit the subject and audiences once the item is created?

And what is the intended purpose of the "target audience"?

Revision history for this message
mallow (princemallow) said :
#3

uh... oh... What about the xml export, with silva docs it exported a full xml page, Silva news exports a .zexps is that able to get interpreted by software such as Quark Express??

Revision history for this message
Kit Blake (kitblake) said :
#4

The author needs to edit the document (make a new version) again, and then the subjects can be changed.

The target audience can be used to filter the articles, e.g. one viewer shows culture related articles and another shows all.

The export is a zip file with xml and assets. The xml would need to be transformed for use in Quark or InDesign.

Revision history for this message
mallow (princemallow) said :
#5

I appologize for asking so many questions however I've included screenshots...

Alright, I created a new version of a document already created, but I still cannot find where to go to change it's subjects and target audiences here is a screen shot of what I have
http://princemallow.googlepages.com/screenshot01.jpg

The tabs just seem to show what they genrally show usually, sometimes the setting tab in the properties tab gives an error, other times it offers to choose a renderer (Where can I learn more about renderers?) But all in all, I cannot seem to edit the original options for subject and audiences unless I create a whole new article and copy paste back into it.

As for the XML thing, here is another screenshot:
http://princemallow.googlepages.com/screenshot02.jpg
I'm just wondering if there is a way to expand that?

Revision history for this message
mallow (princemallow) said :
#6

I appologize for asking so many questions however I've included screenshots...

Alright, I created a new version of a document already created, but I still cannot find where to go to change it's subjects and target audiences here is a screen shot of what I have
http://princemallow.googlepages.com/screenshot01.jpg

The tabs just seem to show what they genrally show usually, sometimes the setting tab in the properties tab gives an error, other times it offers to choose a renderer (Where can I learn more about renderers?) But all in all, I cannot seem to edit the original options for subject and audiences unless I create a whole new article and copy paste back into it.

As for the XML thing, here is another screenshot:
http://princemallow.googlepages.com/screenshot02.jpg
I'm just wondering if there is a way to expand that?

Revision history for this message
mallow (princemallow) said :
#7

Alright Today I am ready to implement the first question I'm assuming you are referring to this:
<tal:insert define="view_method options/view_method"
  content="structure python:getattr(here, view_method)()">
  <!-- this comment gets replaced by the Silva document content -->
</tal:insert>

To what can I change the "here"
I've tried to lead to the viewer by url but that doesn't work?

Revision history for this message
mallow (princemallow) said :
#8

here/[('name of viewer')] is this correct, if so please look at 5th response... thank you

Revision history for this message
mallow (princemallow) said :
#9

Also is there a way to tell the viewer that you only want an image on the first article, and the rest just to print the title and date, or just to print title date and lead and not have all the content display? So I guess I'm asking where can I customize the view of the viewer beyond the number of articles?

Revision history for this message
mallow (princemallow) said :
#10

['silva']\Products\SilvaNews\views\public\NewsViewer

Is there a way I can add on to this list (via copy and paste) and have different viewers show content in different ways this way, how would I go about doing this?

Revision history for this message
Kit Blake (kitblake) said :
#11

Only be creating a new Product. But you can easily customize the Inline News Viewer (see the earlier message above). It's a Code Source and thus you can edit the template. See:
http://infrae.com/products/silva/docs/manager/external_sources_managers
http://infrae.com/products/silva/docs/manager/code_source_howto

Revision history for this message
mallow (princemallow) said :
#12

Thanks Kit Blake, that solved my question.

Revision history for this message
mallow (princemallow) said :
#13

I'm sorry Kit, turns out the first awnser you gave me was the one to awnser my question, however I must say that diving into the code source like that revealed to me lots more of what silva can do... Now that I understand that this is a code source that will allow me to costumize how the viewer looks I understand now that I can then do the three documents as you said, and then enter them through the view method where instead of here i use the exact locations of these documents to make it appear as needed. I'm going to do this first thing tommorow morning and I think this will be the ultimate solution. As you probably know there will be more questions in the future, and I can't thank you enough for the aid you offer. Thanks again. More updates on this coming soon.

Revision history for this message
mallow (princemallow) said :
#14

Hmm, using the Inline News Viewer it does not fetch the pictures, can that be added to the Inline News Viewer somehow?

Revision history for this message
mallow (princemallow) said :
#15

or rather the option to fetch a picture or not

Revision history for this message
mallow (princemallow) said :
#16

I'm having a hard time inserting a document into a template

<div class="public">
<span tal:replace="nothing"> _______ content area, here the XML is rendered to HTML _______ </span>
<metal:slot define-slot="main">
<!-- Start Silva content -->
<tal:insert define="view_method options/view_method"
  content="structure python:getattr(here, view_method)()">
  <!-- this comment gets replaced by the Silva document content -->
</tal:insert>
<!-- End Silva content -->
</metal:slot>
</div>

I'm trying to replace the here, view_method with the document named sante in the root folder of silva?

Revision history for this message
mallow (princemallow) said :
#17

Answer was found here: https://lists.infrae.com/pipermail/silva-dev/2004q1/001060.html

Go into Content.html and copy one of the lines of div nometal.... preferably near fill-slot="main" and then change the fill slot title to what you want, then in layout macro.html you can copy the line which is in the message above and wrap it around some <tal:def> tabs to define the article your looking for.

Revision history for this message
mallow (princemallow) said :
#18

:)