I'm including the comments extension multiple times on a page. The StoragePid for each element is different. When I press the submit button from one comments instance, other instances submits the message as well. Is there any way to separate this?
I can recommend you my extension toctoc_comments.
It can import old comments and it can be used several times on a web page with same StoragePid.
The new extension is AJAX-based and has about (estimated...) 500% more functionality than comments. ratings are included, comment replies, web page previews.
There is no extension "tx_comments". It seems that you just have posted the table name. So which extension do you exactly mean?
Related
I have a sulu 1.6 installation with multiple webspaces. I have multiple page template definitions in app/Resources/templates/pages, like default.xml, homepage.xml, blog.xml, center.xml.
Is it possible to make for example the center.xml only available for the content of one webspace and not all the others?
UPDATDE:
Where can I change this behaviour in the code, that per webspace only the ones are showing up, that are defined in the webspace.xml? This is really blocking and a super bad user experience, since the template is directly linked together with the configured webspace, but the others do not fit.
Thx a lot!
Andreas
The template is only shown in the dropdown if its .html.twig file exists. So if you use the SuluThemeBundle and only a specific theme implements its .html.twig file the template will not be shown on the other theme aslong as the .html.twig does not exists there.
This feature has not yet been implemented, because not too many people have asked for it...
Since Sulu 2.0 you can limit the template on the webspace using the exclude-templates inside your webspace configuration:
<excluded-templates>
<excluded-template>overview</excluded-template>
</excluded-templates>
Before the only way to limit page templates was to work with themes.
I'm working on a magazine webpage and the static version is pretty much ready by now.
Now I was wondering what would be the easiest way to create a post list, so a user can add a new post to that list.
For each post of that list, a page should be created, of course containing the text and images the user defines.
Also a goal would be, to be able to list all posts on one page where the user can click the one he want to read.
I've discovered the blog extension but I'm not sure if that is what I need.
The extension tx_news is probably good for you, hope it helps :)
You can have a look for the extension just_news: https://extensions.typo3.org/extension/just_news/
Is it possible to set a storage PID where pw_comments also looks for comments instead only on the page where pw_comments is inserted?
Setting persistence.storagePid in Typoscript didn't help...
Background: I'm migrating comments from another extension to pw_comments but there the comments are stored mostly all in one folder. All the comments are belonging to news records. To figure out for any comment, which is the detail page where the news will be displayed, seems quite difficult.
It's possible to set/override the Storage Page where pw_comment should look for comments:
plugin.tx_pwcomments.settings.storagePid = 123
A possibility to look in several folders is not given.
you can use the EntryUid setting of pw_comments. Usually pw_comments works on page base.
But for EXT:news e.g. the detail page of any news is always the same and comments are stored in same folder/pid.
This option allows you to define a GET parameter (e.g. tx_news_pi1[news]) to be respected as separator for comments in same sys_folder.
So each time you are on news with e.g. uid=1, you just get the comments, because in comment record the field "entry_uid" has the value "1".
Here you'll find an example of how to configure typoscript: https://forge.typo3.org/projects/extension-pw_comments/wiki#How-to-use-pw_comments-with-other-extensions
Because the GET parameter is configurable, you can use pw_comments with any TYPO3 extension. Limitation: just one plugin per page.
i'm currently working on a TYPO3 6.2 site using tx_news.
My goal is that a user can use the listView directly to download a related file, like it was possible in TT_news with type download.
The problem is in TX_news is only type news, internal page, external page available.
I dont really want to extend news that much to generate a new news type.
I got two possible solutions:
Use external page as link to file
Problem:
I dont really want the user to type the external file link
into these fields, since its a bigger project with many files.
Use sys_category and link the "more" field to related file
Problem:
I need a hardcoded check in the template files for the "File
Download Category" UID. What if this changes, or in a year some new
people need to maintain this.
This is possible with some template like this, but as is said before, this is an ugly hardcoded check in a template file:
<f:for each="{newsItem.categories}" as="category" iteration="catIterator">
</f:for>
Any help is very appreciated, if someone knows a better, cleaner solution.
To clarify: With 'listView' you mean a list of news items?
If so,
You could add a TemplateLayout to display only the URLs of the related files.
tx_news provides the news type "Internal Link", too.
With this type, it is possible to create a direct link to a file (on your webspace), page, folder or email.
HTH.
On a website, I have a section where I put a new page every week. I'd like to convert this to a system using tt_news. How do you suggest me to import the pages (more than 100 pages) to tt_news? Can I do it using a simple SQL query, or should I write a custom PHP script to perform the importation? Is there already an extension that exists that could help me performing this task?
It doesn't really matter to me if I simply build news liked to existing pages, or if I transfer the content of the page to the content of the news. It would be great if I can convert the page title to the news publish date, but I could use the page publishing date as well.
What do you suggest for performing this task?
I would do it via SQL as you mentioned already. Could get tricky if you have multiple content-elements per page that needs to be merged into one tt_news-dataset.
You could also install an extension, that links tt_content-elements with tt_news-records. This way you only have to insert the tt_news-records by traversing the pages and link the content per page to the new tt_news-record. Here are some extension, that link tt_news with content-elements:
ttnews_irre
aba_ttnews_content_con
Here is also an extension that could be worth a look: content2news.
Hope this is useful to you.
Best regards,
Peter