# Page\_attachments extension

**URL:** <https://www.ruby-forum.com/t/page-attachments-extension/93082>\
**Category:** Radiant CMS\
**Created:** [April 27, 2007, 9:28am UTC](https://www.ruby-forum.com/t/page-attachments-extension/93082 "2007-04-27T09:28:18Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![esquilax](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/e0b2c6/32.png) [@esquilax](https://www.ruby-forum.com/u/esquilax)\
**Post date:** [April 27, 2007, 9:28am UTC](https://www.ruby-forum.com/t/page-attachments-extension/93082/1 "2007-04-27T09:28:18Z")

</div>

I’m having trouble using the page\_attachments extension. The  
admin/extensions page in Radiant shows that it’s installed and enabled,  
I  
just don’t see where the interface for uploading assets is, there’s no  
difference when creating or updating a page. Am I doing something wrong?

---

<div class="post-metadata">

**Author:** ![esquilax](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/e0b2c6/32.png) [@esquilax](https://www.ruby-forum.com/u/esquilax)\
**Post date:** [April 27, 2007, 9:40am UTC](https://www.ruby-forum.com/t/page-attachments-extension/93082/2 "2007-04-27T09:40:20Z")

</div>

If you’re using my extension (from [soxbox.no-ip.org](http://soxbox.no-ip.org)), you need to  
install the admin\_parts extension also. Otherwise, can’t help you.

* * *

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Andrew G.  
Sent: Friday, 27 April 2007 5:27 PM  
To: removed\_email\_address@domain.invalid  
Subject: [Radiant] page\_attachments extension

I’m having trouble using the page\_attachments extension. The  
admin/extensions page in Radiant shows that it’s installed and enabled,  
I just don’t see where the interface for uploading assets is, there’s no  
difference when creating or updating a page. Am I doing  
something wrong?

---

<div class="post-metadata">

**Author:** ![esquilax](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/e0b2c6/32.png) [@esquilax](https://www.ruby-forum.com/u/esquilax)\
**Post date:** [April 27, 2007, 11:59am UTC](https://www.ruby-forum.com/t/page-attachments-extension/93082/3 "2007-04-27T11:59:20Z")

</div>

I noticed this yesterday as well whilst working with the new 0.6 gem  
and edge versions. Luckily I had an older version of the extension  
that I could roll back to. It worked fine with my new installation…

It looks like the modifications to the edit page aren’t getting  
picked up from the latest version of the extension.

---

<div class="post-metadata">

**Author:** ![esquilax](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/e0b2c6/32.png) [@esquilax](https://www.ruby-forum.com/u/esquilax)\
**Post date:** [April 27, 2007, 3:21pm UTC](https://www.ruby-forum.com/t/page-attachments-extension/93082/4 "2007-04-27T15:21:14Z")

</div>

Andrew,

I have yet to update the extension to make it compatible with the  
release of 0.6. I wrote that back in January I think. Give me a couple  
days, at least; I have to update about 5 other extensions too!

Sean

---

<div class="post-metadata">

**Author:** ![esquilax](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/e0b2c6/32.png) [@esquilax](https://www.ruby-forum.com/u/esquilax)\
**Post date:** [April 27, 2007, 9:59pm UTC](https://www.ruby-forum.com/t/page-attachments-extension/93082/5 "2007-04-27T21:59:56Z")

</div>

Sean,

No problem, I just thought I was missing something. Thanks.

---

<div class="post-metadata">

**Author:** ![esquilax](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/e0b2c6/32.png) [@esquilax](https://www.ruby-forum.com/u/esquilax)\
**Post date:** [May 16, 2007, 4:12pm UTC](https://www.ruby-forum.com/t/page-attachments-extension/93082/6 "2007-05-16T16:12:40Z")

</div>

I have such a problem with those extension. I’ve installed the extension  
and it’s visible on admin/extensions page. But on Edit page there is no  
UI for uploading some file or anything… What can be wrong??

---

<div class="post-metadata">

**Author:** ![esquilax](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/e0b2c6/32.png) [@esquilax](https://www.ruby-forum.com/u/esquilax)\
**Post date:** [May 16, 2007, 5:03pm UTC](https://www.ruby-forum.com/t/page-attachments-extension/93082/7 "2007-05-16T17:03:40Z")

</div>

Do you have any other extensions that modify your edit-page page? I  
believe that a current limitation is that only one extension can  
modify the page.

Matt

---

<div class="post-metadata">

**Author:** ![esquilax](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/e0b2c6/32.png) [@esquilax](https://www.ruby-forum.com/u/esquilax)\
**Post date:** [May 16, 2007, 5:51pm UTC](https://www.ruby-forum.com/t/page-attachments-extension/93082/8 "2007-05-16T17:51:49Z")

</div>

Matt,

You’re almost right. I updated page\_attachments to use the hooks  
available in 0.6.x to place a section just above the form buttons.  
However, if any other extensions directly override the interface, this  
could be broken.

Artur,

Make sure you run `rake radiant:extensions:page_attachments:update` to  
copy the needed javascript and CSS to the public folder. Then when  
you want to add an attachment, click the ‘+’ icon in the box that says  
‘Attachments’.

Sean

---

<div class="post-metadata">

**Author:** ![esquilax](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/e0b2c6/32.png) [@esquilax](https://www.ruby-forum.com/u/esquilax)\
**Post date:** [May 16, 2007, 5:55pm UTC](https://www.ruby-forum.com/t/page-attachments-extension/93082/9 "2007-05-16T17:55:45Z")

</div>

Matt B. wrote:

> Do you have any other extensions that modify your edit-page page? I  
> believe that a current limitation is that only one extension can  
> modify the page.
> 
> Matt

On edit page I have only tiny\_mce editor…

---

<div class="post-metadata">

**Author:** ![esquilax](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/e0b2c6/32.png) [@esquilax](https://www.ruby-forum.com/u/esquilax)\
**Post date:** [May 16, 2007, 5:53pm UTC](https://www.ruby-forum.com/t/page-attachments-extension/93082/10 "2007-05-16T17:53:49Z")

</div>

P.S. Make sure you do `rake radiant:freeze:edge` as well. 0.6.1  
doesn’t allow multi-part forms on the page-edit interface, which are  
needed for file uploads. See r436:  
[http://dev.radiantcms.org/radiant/changeset/436](http://dev.radiantcms.org/radiant/changeset/436)

Sean
