Please let me add the following Document... the issue is that The documentation is not very clear as to where views 2 documentation belongs (we have two locations).
An issue I came up with was #340412: Pager at top and bottom of view and have come up with the following solution and documentation. Please let me create the documentation, I just don't know where to put it. Forum topic http://drupal.org/node/340359 and there are other tickets, and others also reference this node!
How to add a pager to the top and bottom of a view in Views2.
Go to a view in views and click on the link theme information, then click on the "Display output". Create a new file called views-view.tpl.php under your themes/yourtheme/theme directory and copy and paste the code into it. Then find the following code...
<?php if ($attachment_before): ?>
<div class="attachment-before">
<?php print $attachment_before; ?>
</div>
<?php endif; ?>
<code>
then insert...
<code>
<?php if ($pager): ?>
<?php print $pager; ?>
<?php endif; ?>
Save the file and test it!
Comments
Comment #1
MGParisi commentedcorrection:
then insert...
Comment #2
jhodgdonI believe the point of view of the Views maintainers is that all documentation for Views 2 belongs inside the Views module's "Advanced Help", rather than in handbooks on drupal.org. I cannot at the moment remember where I read that on some issue, so I might be wrong, but I think that is their point of view.
Comment #3
esmerel commentedGold star ;)
Technically it's a patch to Views, which actually contains the docs, Advanced Help is just the mechanism that pulls the docs out. That way, docs stay with the module.
http://drupal.org/project/advanced_help
Advanced Help is its own module, and a small number of important modules are using it now :) It also contains a sample so you can see how the system works.
Comment #4
esmerel commentedmerlinofchaos says that if you want, you can just submit the doc to the queue as well, just try to make it HTML that works with the line break filter and he'll try to add it.
Comment #5
jhodgdonI think this was marked "fixed" in error. I don't see anything indicating it was committed to the Views project. But it looks like there is agreement it should be in the Views queue.
Comment #6
MGParisi commented@jhodgdon
Thank you very much, I will try to get a better edit of it today, and then submit it here.
@esmerel
I love advanced help module, however is there a way we can #492210: Create a Way to Display Advanced Help Documentation.. Would you like a .html file? I can create the HTML and attach it as a .txt (the comment system wont allow you to insert .html)
Thanks
Michael
Comment #7
socialnicheguru commentedthanks for this.
is there a way to theme attachments separtely. For example if I have two attachments coming before my main view, is there a way for me to theme one to be on the right and the other on the left?
Thanks,
Chris
Comment #8
dawehneradd tag.
Comment #9
dawehner@MGParisi
Do you want to create a patch? This would help to fix this issue.
Comment #10
esmerel commentedAddition pushed to 6.x-3.x and 7.x-3.x
Comment #11
MGParisi commentedWow, sorry I left this opened. A woman came into my life and distracted Me away from all things Drupal. Now that I a married her I am back:)