Despite what the title says, this is not a "View" for the "Views" module and does not require "Views" to work. This module just provides you an alternative way to view your content through the admin interface. It really comes in handy when you have a website with hundreds of pages and terms and would like a logical way to navigate through it.
When enabled, this module changes your node content screen (admin/content/node) to a content directory built off PathAuto's URL aliases.
NOTE: If you are unable to view the content directory on your admin node content list page, check to make sure you already don't have a "View" enabled. If you do, simply disable the "View" or change the path of the "View".
See attachments for interface change.
http://drupal.org/sandbox/d.cochran/1549710
http://git.drupal.org/sandbox/d.cochran/1549710.git
git clone --recursive --branch 6.x-1.x d.cochran@git.drupal.org:sandbox/d.cochran/1549710.git content_directory
Created for Drupal 6.x
| Comment | File | Size | Author |
|---|---|---|---|
| after.jpg | 41.99 KB | d.cochran | |
| before.jpg | 55.58 KB | d.cochran |
Comments
Comment #1
mschudders commentedHi
Please also add to link to your git clone ie : git clone http://git.drupal.org/sandbox/d.cochran/1549710.git content_directory__admin_view_
There are still some big issues ie
Could you resolve these and also have a look at some coding guidelines (You can view the report here : http://ventral.org/pareview/httpgitdrupalorgsandboxdcochran1549710git)
Kind regards
Comment #2
ankitchauhan commentedhi
I have tried
git clone http://git.drupal.org/sandbox/d.cochran/1549710.git content_directory__admin_view_but only README.txt file is there.
no module or info file of your application available in checkout.
Comment #3
d.cochran commentedHey SleejR,
Thanks for the quick reply!
I am in the middle of making all the changes.
This is the first time I am trying to make one of my modules public, so I am very new to all of this.
I was wondering if there were a few things you could clear up as the documentation doesn't quite spell things out very well:
I posted this link to my git clone (is it not valid?): git clone --recursive --branch 6.x-1.x d.cochran@git.drupal.org:sandbox/d.cochran/1549710.git content_directory
Under "Setting up this repository for the first time:" which is what you follow when creating your modules, it doesn't have you create a "README.txt" file, in fact it has you create a .info file in your master branch. If the "README.txt" is the only thing you are supposed to have, why is it having you create a .info file? Please let me know if both are supposed to exist, I'd say the "Setting up this repository for the first time" documentation needs to be updated ;^)
To further this, there is nothing under the version control that says you need to be working in a "branch". There are instructions on how to switch, but nothing says you "should" be developing under a version specific branch. The "Setting up this repository for the first time" should really include creating the "README" file, and it should include the setting up the branch, as these are both requirements that are neglected.
Nice! I didn't know of http://ventral.org/pareview! I even checked out many reviews and never ran across it. I only knew of "Coder" which didn't seem to scan the .tpl.php files. It would be nice to have these two sources posted on the version control page or the "Apply for Full Access" page as well. Seeing as they are standards, and arn't mentioned at all. I found out about "Coder" after reviewing other peoples modules and I didn't even see http://ventral.org/pareview.
*EDIT* I did find reference to this two links under "Tips for ensuring a smooth review". I must have missed that link from all the other tabs I had open. Although, I wouldn't consider these items as "tips" seeing as they are standards. They should really be a part of the process...
Once again, thanks!
I will make the changes and repost.
~dc
Comment #4
d.cochran commentedHey ankitchauhan,
Thanks for trying to review it, this is the git repository I was using, please let me know if it is invalid:
git clone --recursive --branch 6.x-1.x d.cochran@git.drupal.org:sandbox/d.cochran/1549710.git content_directory
Comment #5
mschudders commentedHey,
1: About the link : http://git.drupal.org/sandbox/d.cochran/1549710.git, if you could add this to the original message it would be easier for some ppl to test your code, like I did, it's just a small improvement not really anything you should worry about.
2: You are correct when you set up your module first you have : .info, README and .module for example (in the master branch) then you should start working ==> making a branch ( ie: 7.x-1.x) and putting your code in there.
Then you only have README.txt in your master directory. How can you make a branch ? Check the tab at your project page.
I know there is nothing that says you should make a branch, but it is recommended. My first module was also like that, but you should branch it :p
Kind regards,
Comment #6
ankitchauhan commentedhii
tried this one and its working, having all project files
git clone --recursive --branch 6.x-1.x http://git.drupal.org/sandbox/d.cochran/1549710.git content_directory__admin_view_manual review:-
Comment #7
d.cochran commentedI am currently making huge changes to this module...
Changing status to "needs work" until I am ready to have it checked again.
Comment #7.0
d.cochran commentedAdding: http://git.drupal.org:sandbox/d.cochran/1549710.git
Comment #8
d.cochran commentedI made huge updates to this module. A couple key points:
I have checked coder and pareview.
Pareview gives me a lot of spacing and indentation errors that I can't figure out why.
For example, if someone could tell me what is wrong with this:
Pareview tells me:
16 | ERROR | An operator statement must be followed by a single space
18 | ERROR | Line indented incorrectly; expected 2 spaces, found 4
I don't think that adding a space after the "!" is correct.
The "return FALSE" belongs inside the "if" statement.
All of the spacing errors seem to be like this.
Could someone shed some light please?
Many thanks!
Comment #9
misc commentedif (something):) should only be used in tpl-files.Comment #10
d.cochran commentedSimilar?
I couldn't find a similar module that would let me browse through my content and taxonomy as if it were in a directory structure. I also tried creating a view several times and simply failed at it. I couldn't even get close, lol, maybe I just suck at views. I could obviously pull the content, but I was having issues with only getting the content for the current path and such. Anywho, that is another story.
Image License
Some are mine, others are creative commons from iconfinder.com
Alternative Syntax
This is something I will need to fix.
Structure
For such a small module, I didn't really see the need. This also seems like a personal preference. There are a ton of small modules out there that do not create a directory for the css.
Empty PHP Variable
I will take a look at it.
Unsecure Code and None Drupal Way
I did read the Writing Secure Code page before programming. In fact, I followed the examples posted on the page:
I also used the $_GET variable to mimic what drupal was doing with the "destination" variable. My path for the directories was pretty much the same thing as drupal's path to record the "destination".
Formatting
For some reason, I can not see the indenting, see post #8.
Overall
If there is no need for this module, we can scrap it. It was my first attempt and I learned a lot with it.
Thanks for taking the time to review it.
~dc
Comment #11
klausiClosing due to lack of activity. Feel free to reopen if you are still working on this application.
Comment #11.0
klausiUpdated my sandbox link.