How do I modify robots.txt in Plone? - plone

I've got a Plone site that I administer and I'd like to add some pages to the Disallow of a robots.txt.
It appears that Plone automatically generates a robots.txt file. I can't find any way to modify that. I've also tried adding a 'robots.txt' file to the root of the app, but it says that "robots.txt is reserved"
Does anyone know how to modify this with Plone (v3)?

As has been noted already, Plone 3.x already includes a robots.txt file so the preferred solution now is probably NOT to create a new robots.txt in the ZMI but rather to customize the included one.
Using the ZMI, go to /portal_skins/plone_templates/ and find the robots.txt file. Customize as you would any other skin element.
Or using the filesystem, just add your robots.txt file to a custom skin product.

In Plone 5 it was turned into a BrowserView, so now you can edit it in the Site Settings at /##site-controlpanel.

Create a robots.txt on your desktop
Go in the xmi of the plone site -> add a new file -> call it robot.txt
Choose it from the desktop
source: http://plone.org/support/forums/general#nabble-td329779

Related

Linking to a file on server in Wordpress

I hava a website in Wordpress. Let's say is installed on a domain www.something.com.
I know how to get to individual files, but is it possible to make a link to a file, so that the URL would be: www.something.com/pdf/article1.pdf?
Yes ofcus, Simply put in the link like so, in your html/text
Download here
to refer to the file, and make sure u have the pdf folder created in your root directory.
Good luck.

how to view and edit a wordpress php file locally (MAMP)

I am helping out creating a few wordpress templates. I've been sent over the basic content (wp-admin/wp-content/wp-includes folders and other wp-* files).
They've already created a new theme, and one front-page.php file. This file includes "parts" such as get_header and get_footer.
Essentially now they'd like me to create new templates using this theme, and php variables to make updating easier. My question is - how can I view this so I can see what i'm making?
I downloaded MAMP and set up a local server, and if I create a sample .php file in the htdocs folder, that page appears correctly. However when I paste the Wordpress folder that I was sent, nothing loads. Is there a special way to get a front-page.php including partials to load within a theme? Am I missing something obvious here?
You will have to Install WordPress completely in order to make it work. Then you will be able to add your folder in the "Themes" folder of WordPress..
You can Google "How to Install WordPress on Mamp" for more info... you will find plenty of websites helping you.
I also suggest you read a few blog post on how to create WordPress Themes... :)
Good luck

wordpress - how to access and edit index.php file

Is there a way to edit the index.php file in wordpress?
Around the web i found a lot of post saying to go to appearance -> editor,
but I can't find this menu... maybe this feature was removed...
So how can I do it?
There are two ways you can edit your PHP files.
Method 1: Edit the file in your Installation Directory on the Web Server
(this is what Anoop Asok is talking about)
Go to WordPress Installation directory. Follow the path wp-content >
themes. Open your theme folder. In that you can see index.php file.
Edit it and save.
Method 2: Edit the file from the WP Dashboard
(This is easier and is what you were trying to do but that file isn't always made available by your theme)
Download, install, and activate the Synchi plugin (this is an awesome IDE and one of its nice features is that it will allow you advanced theme editing)
Go to Appearance > Editor . Now you will see the -themes- window on the right and you will have full access to all your theme files.
Double-click your theme and drill down until you find your file you want to edit
NOTE! You should avoid editing your theme files because they might be over-written next time you update your theme. Make a child theme and put a copy of index.php in there and work off that one instead.
Please do this.
Go to WordPress Installation directory.
Follow the path wp-content > themes.
Open your theme folder.
In that you can see index.php file.
Edit it and save.

wordpress theme doesn't appear

I'm having a very basic problem: I'm trying to create a new theme for a wordpress installation locally on my computer.
I've created a styles.css and index.php file and put it in a folder in wp-content/themes. But it doesn't appear in the Wordpress themes page.
As a test, I made a change to the description of one of the existing themes (Twenty-Ten) in its style.css, and refresh the Wordpress themes page, but the old description continues to be shown. This suggests to me that I'm simply using the wrong folder, but that's not possible! Any ideas on this problem much appreciated.
UPDATE: In fact, even when I delete Twenty Ten from the Themes folder, it's still available as an option in the Wordpress backend, and I can activate it... Very strange...
G
I agree with your diagnosis. You are either looking at the wrong folder or in fact the wrong computer. There's no other way that you could change the theme to one that has been deleted.
I suggest that you confirm you are in the same universe you think you are in. Create a simple file localserver.txt in your WordPress directory and then confirm that you can access that file.
If you can't, you have your answer. You are somehow accessing a different location.
If you can access that text file, you need to go further and look to see if something like the site url setting is redirecting you to the live site, without you realizing it, when you access wp-admin.
Beyond that, I'd need to know more about your setup. Something like having www.example.com in your /etc/host file and not example.com can cause similar confusion...
Are you using Wordpress Multisite?
In that case you have to 'enable' that theme in the Network admin manager

Find the source files of Wordpress

i mean i want to see the source file of the main page.
when i click right click and choice the option view source, so i want to find
the "body" of the file,and edit it physical, which folder can i find it ?
thanks friends.
WordPress's HTML is generated by PHP in conjunction with CSS, so look in your active theme folder in wp-content/themes/yourtheme. You'll find all the parts of a WordPress theme: Using Themes « WordPress Codex.
WordPress runs on the server -- the "source" you're viewing from your browser is client-side, and is essentially the output of the WordPress PHP code that generates the pages (and some CSS transforms). In order to see the PHP source, you'll have to download it from WordPress's website yourself or look at your WP installation directory on your server.

Resources