I am very new to LaTex. I started by using a template in Lyx. In this template, chapters,sections etc are written in table of contents and only chapter names for the appendices are written to list of appendices (page 3 and 6 approximately). The LaTex code that causes this is as follows:

\bibliographystyle{unsrt}
\bibliography{aliThesisBibliography}

\part*{APPENDICES\thispagestyle{empty}}

\makeatletter
\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
\if@mainmatter
\refstepcounter{chapter}%
\typeout{\@chapapp\space\thechapter.}%
{\protect\numberline{\thechapter}#1}%
\else
\fi
\else
\fi
\chaptermark{#1}%
\if@twocolumn
\else
\fi}
\makeatother