Joomla 3 category RSS feed reveals Registered-only article - joomla

I am building a Joomla 3 website where some articles in a category are intended to be viewed only by registered users, while other articles in the same category are intended to be public.
In testing an article with the "Registered" access level, I find that article's content is revealed in the public Atom/RSS feeds for the category. My expectation is that the article content should not be there.
Here is my test:
http://incyanity.net/index.php/hote
This page is a Category List. The "Test" article correctly displays "Register to read more...". Additionally, in the menu at the top of the page, the drop-down list for this category correctly displays the Test link with a lock icon beside it. The menu item is set to public so visitors can see where the protected content is. Clicking on the menu item takes the user to an error page. Great! This is all desirable behavior.
Edit: I had the menu item set to public and it was working the way I described above, but when I tested just now it seems the behavior has changed again to allow guests to see the whole article. This now forces me to hide the menu item too which is not what I want to do. :( The whole article is still in the Atom/RSS feed though!
http://incyanity.net/index.php/hote?format=feed&type=atom
Both this feed and the RSS version shows the entirety of the body of the "Test" article. Why is this happening? I do want feeds available for people to follow public content published to this category, but anything that requires registration should not be included (or, ideally, the feed should only contain an entry that says something like "[Article Title] has been published. Log in at the website to view").
Since the menu item is set to public, I did try setting it to "Registered" on the off chance that had anything to do with this but the entire "Test" article still displayed in the Atom and RSS feeds.
I've tried asking for help on the official Joomla forum plus various searches on Google for solutions to this and unless my Google-fu is weak I just can't seem to find any answers. I feel like the behavior I'm looking for should be natively supported by Joomla given the integrated user access levels and ideally I want to solve this without turning to a third party plugin.
What am I doing wrong here? Thanks!

To review the configuration, you set:
Article manager options: Show unauthorized links "test"
Article options: View access level: registered;
The first option ensures that you get the links to the articles which have the "access level=registered", and that they show in blogs and category lists.
The second, sets the article's access level as Registered.
This is fine. But in order for Joomla to be able to show the articles in blogs, the introText of the article needs to be visible to all as well. Here comes the trick.
Just add a "Read more" tag (with the button at the bottom of the editor) in the article; the text after the tag will be hidden. The first part of the article needs to be visible to all, otherwise neither Joomla (nor search engines) would be able to show it.
So just add the read more tag... it's that easy. If you don't want any text showing you can start the article with it, but it's against your interest.

Related

Create a Link To An External Page On Order Confirmation Page in Prestashop

I'm very naive. I am not able to create an external hyperlink on the order confirmation page. (lets say http://google.com)
I've modified the bank transfer module to create a manual payment method, but I am not able to add a simple link on the confirmation page. The screenshot depicts it well.
Also attaching the screenshot of the backend where I input the text. I've tried editing the tpl files, but it doesn't change the actual code on the browser. I have even tried disabling html filter and typing href on the text box itself, again the code just disappears in the browser.
The images will make things very clear.
Thanks.
Link
Backend
The solution is simple, like ébewè said, go to advanced settings > Performances, and clear cache or select no from the drop-down menu next to cache.
Then you can just use high school grade html commands in tpl file to wrap the requisite text inside the code. It works!
Thanks ébewè!

Single page website with SEO friendly ajax & history

I am busy building a single page website. The basic layout of the page is as follows - one section below the other:
Header & Navigation
Content Section 1 (example about us)
Content Section 2 (example products)
Content Section 3 (example clients)
Footer
Each section will have a small menu inside it to ajax the content for the specific section. So Products section will have a product title menu, once clicked, product details will be ajaxed.
I can do these with normal techniques, but the problem is, I need the site to be SEO friendly, and indexed/crawled by Google.
I've never worked with it before, but history.js looks promising. I've done some testing, but can't find resources for my specific question. I am also open to other suggestions. All Ajaxed content will be separate HTML files - for SEO, hence the use of history.js sounding good to me.
Specific Questions:
As the user scrolls down, passing each different section, the URL should
change appropriately.
The ajaxed content in each section should also change the URL.
Google should be able to crawl the site an index the separate pages.
I can change all of the content in a page with history.js, but is there a way to target my sections, so it only changes the content in my desired sections, instead of all content on the page?
I suggest using backbone.js. Its depending on jquery and underscore.js.
It provides you the following features
MVC architecture
It gives more structure to the client side code
Templating
You can maintain templates in the client side which gives you a more organized code.
URL re writing
Re-write urls on ajax calls. It Helps to develop SEO friendly website.

get title and url of the previous page on Magento

I'm trying to get title and url of the previous page the customers visited in Magento.
We can get the URL via $ _SERVER ['HTTP_REFERER'] variable but not sure how to get it's title.
Would appreciate any help on this issue or maybe different approaches how to display the previous page (url + title) in Magento
This information isn't sent normally, so you may want to add an observer to the page that saves the last title in the session. The trick will be that this will save the last page from /any/ tab, not necessarily for the referring page. You could save all titles from pages this way, but you'd have to hold onto everything (they could click the link a second time consecutively, etc etc). This may also run into issues with full page caching.
I know this is old but fyi you can JavaScript to the page and use
alert(document.referrer);
Since the numbers of web users with JavaScript turned on (~98%) and most site requirements it's safe. You would be able to make all adjustments to the DOM with that. Just one way of getting what you need.

How to suppress &ref=nf query string from Facebook wall posting image link?

I am writing an iPhone app that includes the ability to publish a link to a user's wall on Facebook using the latest Facebook supplied iOS SDK. To the dialog method I give a name, caption, description, link, and picture in a params dictionary. The method call successfully opens a dialog for the user in the app (after authenticating), where they can add a message and tap Publish. So far, so good.
Looking at the result on the user's wall, both the title of the post (the "name" in the dictionary mentioned above) and the picture associated with the post are clickable links with the url I specified in the method call (via "link"), as expected. Well almost.
Now the problem: while the link on the post title is exactly as specified, the link on the image has the additional, unwanted query string ?ref=nf appended. I want to know how to suppress this, as it breaks my goo.gl shortened link.
I don't think this is iOS specific. It happens on this Facebook developer Feed Dialog page as well. Go down to the section Example, and click where it says Click here to try the url yourself, you’ll get a Post To Your Wall page. If you click Publish and then go to your own wall, you will see that the link for the image and the link for the title are different, with the image link including the extra query string. Which is what I want to suppress.
Interestingly, before you publish from the above page, you can hover over the image and the title, and the reverse it true. The title link has the extra query string but the image link is clean. Bizarre. I cannot see if that is also true in my iOS app, since I have no way to "hover" on the iPhone.
Two other data points
I see this in posts from at least some other apps; the fully expanded links being used there are apparently oblivious to the extra query string information
I don't see this if I post directly from my Facebook news feed page from the Facebook web site
Anyone know how to eliminate/suppress this extra query string from the image link when posting programmatically?
Looking at this post in the facebook forums, it appears you would have to strip it manually yourself. I.e. send it to a shortener that you control and doesn't care about the query string.
They are going to add that query string always. So if you want to handle it gracefully, you need to control where the link goes to initially, or find a url shortener that ignores this parameter.
This is solution:
Remove parameter from URL viac .htaccess

How can I do a Directory Listing of ebsites with Ez?

I need to do a specific task with Ez Publish but I don't have a clue on how to do it.
What I need to do is a list of Websites(Website directory). I will need to add basically two kinds of data:
Website Name
URL of the website
Then, when I click in the website link it will redirect to a page where I have the IFRAME with the link(URL of the website).
Can someone give me a clue about how to do this with Ez Publish? I'm a beginner.
Best Regards,
You haven't said anything about where you're getting the list from, so I assume you have the list already and just want to know the correct way to input this type of content.
Login to the site admin area, browse to the part of the site you want the list to be at (usually a folder). You'll be adding content items of type 'link' below the folder.
Select the 'Link' content type and click on the 'Create' here button. Enter the content (including the link URL to the page containing the IFRAME) then send for publishing.
I'm assuming the sites are your own, since many sites now take steps to prevent others placing their page in an IFRAME.
If you want this page to not just link to the iframe page, but to actually display the iframe content, then you'll need to override the default link template (copy it and tell eZ to use your version instead) and add a bit of html for the IFRAME.
If you're the main user imputing this content, you could also just allow eZ to accept literal HTML in the main description text areas (XML Block) and just paste in your IFRAME html. Ugly but quick to set-up.
You should be able to find many examples of entering literal html at the community web forums http://share.ez.no/forums
You should create a specific class for that with the two fields you need.
One for the name and another one with the URL.
Then you'll just have to make an override of node/view/full.tpl for your new class Where you will display the name and an iframe with URL that have been typped in your class instance.

Resources