Friend with ideas altered fence of stakes (8)
I believe the answer is:
palisade
'fence of stakes' is the definition.
(I've seen this before)
'friend with ideas altered' is the wordplay.
'friend' becomes 'pal' (pal is a kind of friend).
'with' is a charade indicator (letters next to each other).
'altered' indicates anagramming the letters.
'ideas' with letters rearranged gives 'isade'.
'pal'+'isade'='PALISADE'
(Other definitions for palisade that I've seen before include "Enclosure of stakes" , "Protecting fence" , "Strong fence, for defence" , "means of defence" , "Fence of wooden stakes" .)